How to Change a Cell Value in UltraWebGrid With Javascript
The UltraWebGrid control is a customized user control distributed by Infragistics. Custom controls are Microsoft .NET controls that companies use to create user-friendly interfaces. You can use JavaScript to control the values in an UltraWebGrid cell. The JavaScript code points to a cell location, and then you define the cell's inner HTML and text to dynamically display content from user feedback.
Instructions
-
-
1
Right-click the HTML page that contains the UltraWebGrid control. Click "Open With" and select your preferred editor. You can also use the Microsoft Visual Studio software to edit the HTML code.
-
2
Create the JavaScript code that points to cell you want to edit. For instance, the following code points to a cell with the id "CustomerId":
var cell = igtbl_getCellById("CustomerId");
-
-
3
Add the cell value you want to display in the cell's inner content Add the following code to display the text "Hello, World":
cell.Row.getCell(1).setValue("Hello, World");
-
1