Hi...
I am able to saving the grid state and deleting the grid state.
Everything is working fine.
But in deleting the grid state...
If i have the row numbers in grid i am getting the error like TypeError: el is null ext-all-debug.js:32457(only in the case of grid have the row number).
Otherwise its working fine.
Help me in this.
Here is my code to delete the grid state.
Modules.GlobalVars.gridStatObj
Dleting the grid state
I am able to saving the grid state and deleting the grid state.
Everything is working fine.
But in deleting the grid state...
If i have the row numbers in grid i am getting the error like TypeError: el is null ext-all-debug.js:32457(only in the case of grid have the row number).
Otherwise its working fine.
Help me in this.
Here is my code to delete the grid state.
Code:
resetStateCmc:function(){ var me = this;
var satandardState = me.getState();
var paramObj = {
gridId : this.gridId || this.id,
gridCd : me.down('#gridCdItemId').getValue(),
userId : Modules.GlobalVars.loginUserId
};
me.mask('Deleting state...');
try {
Ext.Ajax.request({
url : 'gridstate/deleteGridStateDtls',
method : 'POST',
params : paramObj,
success : function(response) {
delete Modules.GlobalVars.gridStatObj[paramObj.gridId];
me.reconfigure(me.getStore(),me.originalColumns);
me.view.refresh();
me.down('#gridCdItemId').reset();
me.unmask();
},
failure : function() {
me.view.refresh();
me.unmask();
}
});
} catch (e) {
console.log(e.message);
Ext.getBody().unmask();
}
},
Modules.GlobalVars.gridStatObj
"{"
columns ":[{"
width ":24,"
header ":" & #160;"},{"
dataIndex ":"
exitMode ","
width ":55,"
header ":"
Exit Mode "},{"
dataIndex ":"
intViaNo ","
hidden ":true,"
width ":100,"
header ":" & #160;"},{"dataIndex":"curLocInd","hidden":true,"width":100,"header":"&# 160;
"}]}"
Please help me in this...
Thanks In Advance
Kamalakar
Dleting the grid state
Aucun commentaire:
Enregistrer un commentaire