Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Setting search properties during loadComplete/gridComplete
06/07/2009
12:11
Avatar
Renso
PA
Member
Members
Forum Posts: 118
Member Since:
11/09/2008
sp_UserOfflineSmall Offline

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.

$('form.filterform').remove();
$(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?

08/07/2009
02:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

08/07/2009
06:25
Avatar
Renso
PA
Member
Members
Forum Posts: 118
Member Since:
11/09/2008
sp_UserOfflineSmall Offline

Thank yu Tony, is the recreateFiltera version 3.5 property? I am still on 3.4.4.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information