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
Search Toolbar default value ignored
10/12/2009
18:23
Avatar
jansta
Guest
Guests

Default values in search toolbar are ignored in first query, but visible in toolbar. Even more confusing to force search you need to hit enter, reloading with .trigger('reloadGrid'); does not help.

{name:'unit', index:'unit', width:200,align:'left',searchoptions:{defaultValue:'unit_1',}}

First query after grid initialization:

/loggs/fetch.html?_search=false&nd=1260461514565&rows=100&page=1&sidx=created&sord=desc

Tested on:

Opera 10.10

Os: Vista

jqGrid version: 3.6.

11/12/2009
00:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do not think it is abug. The default values just apper in the toolbar waiting the user to perform a action.

Also triggering the grid is not the right approach. You shoould use triggerToolbar instead.

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

11/12/2009
16:12
Avatar
jansta
Guest
Guests

Hello,

I have also tried to use triggerToolber with the same result - no result ;). I think that it may be a bug.

13/12/2009
16:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

How do you call triggerToolbar? - there is a special case here.

Check Demos to see how to use it.

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.

02/02/2010
13:07
Avatar
Chris0110
New Member
Members
Forum Posts: 1
Member Since:
02/02/2010
sp_UserOfflineSmall Offline

Hello,

I have to load the grid with an active initial filter.

Is there a possibility to make the first request using the default values or simply prevent the first request at all and use triggerToolbar after?

FilterToolbar - beforeSearch is not called for the initial request too.

The call to triggerToolbar after the initial request does not help because the initial request does take some time during which the grid does not make a new request and I do not want to let the user wait on two requests to the server.

Greetings

03/02/2010
20:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Try to use triggerToolbar with setTimeout.

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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
40 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