Hi,
would it be possible to change web gird view value by click cell? please see attached picture. When I click once, the W/A disappear (column Region). when I click again. it appear.
Thanks
I got the answer, code below
function UltraWebGrid1_CellClickHandler(gridName, cellId, button){ var oColumn = igtbl_getColumnById(cellId);// var oRow = igtbl_getRowById(cellId); var key=oColumn.Key; var oValue=igtbl_getCellById(cellId).getValue(); if(oValue!='A') { igtbl_getCellById(cellId).setValue('A'); return; } if(oValue='A') { igtbl_getCellById(cellId).setValue(null); return; } }Cheers
Yes,but I prefer when I click web grid cell, the value change auto.
Looks like when you click the cell it goes into Edit mode?
click it again means click row cell again.
please see attached picture. when I click cell, the value 'W/A' disappeared. when I click the cell again,it appear. cell is not a column.
Thanks.
Not sure what you mean by "click it again" since you want to hide a column. Here's how you can hide it though:
function uwg_ReportGrid_ColumnHeaderClickHandler(gridName, columnId, button){ var col = igtbl_getColumnById(columnId); switch (col.Key) { case 'COLUMN_TO_HIDE': col.setHidden(true); break; }}