Hello Everyone,
I am facing small issue with $("#jqxgrid").jqxGrid('loadstate', state);'
1. I want to load saved state when grid initialize.
2. When I click on Reset button, it should reset the grid to original style.
I have tried to reset the grid using forum previous post
width: 660,
source: dataAdapter,
theme: theme,
groupable: true,
showfilterrow: true,
filterable: true,
autoheight: true,
altrows: true, //color every other row
pageable: true,
//pagermode: "simple",
columnsreorder: true,
columnsresize: true,
rendered: function () {
initialState = $("#jqxgrid").jqxGrid('getstate');
}
$("#distroy").on('click',function(){
$("#jqxgrid").jqxGrid('loadstate', initialState);
});
But it doesn’t work for me.
Hope you understand my question.
Thnak You,
Supun Silva