Intersoft WebCombo Documentation
How-to: Get the number of rows in WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Get the number of rows in WebCombo

Glossary Item Box

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

  1. Drag a WebCombo instance into the WebForm.
  2. Drag a HTML button and leave the Id as it is, which is Button1.
  3. Double click the HTML button and add the following code in the defined client side event handler:
  4. JavaScript Copy ImageCopy Code
    function Button_onclick()
    {
       // Obtain WebCombo object
       var combo = ISGetObject("WebCombo1");
       
       // Show the number of loaded rows
       alert(combo.GetRowsCount());
       return true;
    }             
    

  5. Run the project.

See Also