Forum
I use a grid to display my data in two different web pages, and therefore want to be able to set search enabled in one and search disabled in another. I do this by simply checking iwhat page I am on and setting the properties below during gridComplete or loadComplete, but uit does not take affect at all, why are do the properties not have an affect on the grid?
gridComplete: function() {
setGridParam({
gridModel: true,
gridNames: false,
gridToolbar: true,
autosearch: false,
enableClear: true,
enableSearch: true,
toolbar: [true, "top"]
});
}
I also tried this with the loadComplete. I also tried to set the SEARCH col property on loadComplete and gridComplete but this also has no affect:
$(mygrid).setColProp('mycol', {search: true});
or
$(mygrid).setColProp('mycol', {search: false});
So I have ended up manually hiding/removing the search tables and buttons like below, but I think setting the grid search properties should take care of this.
$(item + 'Pager').find('.navtable.nav-table-left .nav-row td:nth-child(9)').nextAll().remove();
Any ideas on why setting the grid search properties does not work?
02:36
Moderators
30/10/2007
Hello,
Some properties can not be chaged dynamically.
If you use searchGrid method (in the navigator) in order to have effect what you want you can set the following parameter
recreateFilter : true
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
104 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66