Forum
18:23
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.
00:52
Moderators
30/10/2007
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.
16:51
Moderators
30/10/2007
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.
13:07
02/02/2010
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
20:05
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66