Intersoft WebCombo Documentation
How-to: Modify the first cell of the first row in unbound WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Unbound Mode How-to Topics > How-to: Modify the first cell of the first row in unbound WebCombo

Glossary Item Box

In WebCombo, you can modify the first cell of the first row in Unbound WebCombo. 

This topic will show you how to perform the modification via Client-side.

To modify the first cell of the first row in WebCombo from Client-Side

  1. Go to HTML View and put the following code:

    <input id="Button1" type="button" value="SetColour" onclick="SetColor()" />

  2. Create function SetColor() in client side and add one of these codes based on your need:

    JavaScript Copy ImageCopy Code
    function SetColor()
    {                        
       var combo = ISGetObject("WebCombo1");
       var row0 = combo.GetRow(0);
                                            
       if (row0 != null)
       {
            var cell0 = row0.GetCell(0); 
            var cellElement = cell0.GetElement();
                                                    
            if (cellElement)
            {
                    cellElement.style.color = "red";
                    alert("HTML Element of WebCombo1's Row 0, Cell 0 found. The fore color has been changed to Red.");
                    combo.SetFocus();
                    combo.ShowDropDown();
            }
       }
    }
    

  3. Run the project.

See Also