In WebCombo.NET V4.0, you can get number of loaded rows in combo via client side.
In this topic, you will learn how to use GetRowsCount method.
To get the number of rows in WebCombo
- Drag a WebCombo instance into the WebForm.
- Drag a HTML button and leave the Id as it is, which is Button1.
- Double click the HTML button and add the following code in the defined client side event handler:
-
JavaScript Copy Code function Button_onclick() { // Obtain WebCombo object var combo = ISGetObject("WebCombo1"); // Show the number of loaded rows alert(combo.GetRowsCount()); return true; }
- Run the project.