If ((col != null) & (col.Key = ' StateDefinitionID')) Code sample for navigating through Infragistics WebGrid Adding rows in Infragistics WebGrid when data is entered in the last rowĬopy Code function BeforeEnterEdit(tableName,cellName) This initial validation helps in improving the overall performance of the web page by minimizing the number of trips made to the server as well as ensuring valid data. Once we are able to navigate through the grid using the client script we can do lots of business validations like summing up the values in some columns or checking for relevant values in a given column or row etc. If there is any control inside the cell it can be accessed through its childNode. The childNodes of the row give the columns in that row. The childNode of TBody gives the row of the table. The first childNode gives the TBody object. The cells in the DataGrid are accessed by getting the childNodes of the Table object that is rendered on the browser. loop through the column and do the validation as required // if there is any control inside the Column access the control // by gettting the childNodes of the column Copy Code function NavigatingDataGrid(oDataGrid)įor(j = 0 j < j++)įor(k= 0 k < -1 k++)įor(l= 0 l < tr.childNodes.length-1 l++)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |