i get from server..for example
serverData which has field qty..
before setting it to table.. i am doing
serverdata.qty = <some value> for some matching unique ids..
after that i do
src.localdata = serverdata
//update found data to reflect changes
everything works fine.. my qty field in table is editable.. so user can enter/delete qty/
now i have “clear” button on screen.. which should clear the qty. thats where the problem is.
here is what i am doing to clear qty
$(‘#table’).jqxGrid(‘beginupdate’);
var rows = $(‘#table’).jqxGrid(‘getrows’);
for(var i=0;i<rows.length;i++){
rows[i].qty = null;
}
$(‘#table’).jqxGrid(‘endupdate’);
$(‘#table’).jqxGrid(‘updatebounddata’,’data’);
this does not clear the qty in editable cell.. but if i enter qty manually.. then it does clear that value..
if qty is added via above approach (via serverdata).. then it does not clear that cell..
how can i fix this ?
thanks