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
- Go to HTML View and put the following code:
<input id="Button1" type="button" value="SetColour" onclick="SetColor()" />
- Create function SetColor() in client side and add one of these codes based on your need:
JavaScript Copy 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(); } } }
- Run the project.