i have used setColumns function to show/hide columns dynamically on client-side.
now i want to reset all the columns to default view.. how to do that.
the following is the code i used
$("#list").navButtonAdd('#pager', {
caption: "View",
title: "Click here to select Columns to view",
onClickButton: function() {
var params = {width:500,modal:true,drag:true};
jQuery("#list").setColumns(params);
},
position: "last"
});
i need something like reset.
refresh button for the jqgrid is just refreshing the table with selected columns but not reseting them.
thanks, Sandeep