May 05, 2011, 4:32 AM
[CLOSED] Not value retain when page navigate
Hi,
We are using to change the value in store at client side. The following method we are using to change the value. Also can you see the attached image
In this method, we are used to change the selected column value if the column value is 1 then set 0 else if the column value is 0 then set 1. If column value is 1 then we are used to renderer method to show the image else show the empty. This method is calling from toolbar icon and this is working fine to change the column value in client side. But It will not retain the column value when we are going to next/previous page. This method is retaining the value current page only. Here any mistake we are used?
Regards
Rameshkumar
We are using to change the value in store at client side. The following method we are using to change the value. Also can you see the attached image
In this method, we are used to change the selected column value if the column value is 1 then set 0 else if the column value is 0 then set 1. If column value is 1 then we are used to renderer method to show the image else show the empty. This method is calling from toolbar icon and this is working fine to change the column value in client side. But It will not retain the column value when we are going to next/previous page. This method is retaining the value current page only. Here any mistake we are used?
function selectordeselectuser()
{
if (activecolumn == null) return;
if (selectdeselectflag == null) selectdeselectflag = '1';
for (introw = 0; introw < totalgridrow; introw++) {
var columnname = ColumnModel2.getColumnId(activecolumn);
var recordData = storeGrid.allData.itemAt(introw);
if (recordData != null) {
if (selectdeselectflag == '0') {
recordData.set(columnname, '1');
}
else {
recordData.set(columnname, '0');
}
recordData.commit();
gridpanel.getView().refreshRow(recordData);
}
}
if (selectdeselectflag == '0') {
selectdeselectflag = '1';
}
else {
selectdeselectflag = '0';
}
}
Please reply your suggestion asap.Regards
Rameshkumar
Last edited by Daniil; May 10, 2011 at 6:31 AM.
Reason: [CLOSED]