Hi All
I have a UltraWebGrid with 1st column with checkboxes , 2nd with some Teacher name , 3rd with ApproverLevel dropdown list.
Now i need to make the ApproverLevel column to be made empty only when i uncheck the checkbox in 1st column , and the 2nd column data must not change .
How can i make the cell value of Approverlevel column to empty via javascript ?
function uwgSchoolLevel_AfterCellUpdateHandler(gridName, cellId) { var Grid = igtbl_getGridById(gridName); var cell = igtbl_getCellById(cellId); var split = cellId.split('_'); var flag = false; var Rows = Grid.Rows; var actRowWork = igtbl_getActiveRow('uwgSchoolLevel'); var sta; if (split[3] == 0) { if (Rows.getRow(split[2]).getCellFromKey("Sel").getValue() ==1 && Rows.getRow(split[2]).getCellFromKey("Sel1").getValue()==0) { Rows.getRow(split[2]).getCellFromKey("Status").setValue('1'); } else (Rows.getRow(split[2]).getCellFromKey("Sel").getValue() == 0 && Rows.getRow(split[2]).getCellFromKey("Sel1").getValue() == 1) {
// i need to make the cell value empty here of ApproverLevel where Sel is the checkbox in 1st column and Sel1 is the teacher Column
Rows.getRow(split[2]).getCellFromKey("Status").setValue('0'); } }
I'm unable to proceed ,please help me come out of it
Hello Yamini,
As described in the following forum thread, you can use the below code to set the value of a cell on the client side.
http://ko.infragistics.com/community/forums/t/46281.aspx
function UltraWebGrid1_AfterCellUpdateHandler(gridName, cellId){
//This handler will set the value of the last cell in the row.
igtbl_getCellById(cellId).Row.getCell(2).setValue("This is a test value");
}
Please let me know if you have any further questions regarding this matter.