In WebCombo.NET V4.0, you can get specific row in combo via client side.
In this topic, you will learn how to use GetRow method.
To get specific row by its index 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 Button1_onclick() { // Obtain WebCombo object var combo = ISGetObject("WebCombo1"); var row0 = combo.GetRow(0); }
- Run the project.