Home › Forums › Guriddo jqGrid JS › Help › Is it possible set function in setColumns on onsave event?
Hello!
Is it possible set function in setColumns on onsave event?
I want to get list of checked columns and store it on server. Now there are problem – i cant find any list of selected columns.
Hello,
var mycolumns = $(“#mygrid”).getGridParam(“colModel”);
var visiblecolumns=[];$.each(mycolumns,function(i,n) {
if(!this.hidden)
{
visiblecolumns.push(this); // or what you want to be send to the server
}
})
Regards
Tony
Thanks!
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS