Forum


02:34

Moderators
30/10/2007

Do not understand 🙁
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.
I create a grid
$(document).ready(function(){
$("#qpGrid").jqGrid({
url:myurl,
datatype: "json",....
});
$("#qpGrid").navGrid('#pager2',{edit:false,add:false,del:false,refresh:false,search:true});
However the search I only want Begins with so I add the following
$("#qpGrid").searchGrid({sopt:['bw']});
If I do this the search window gets automatically displayed when the jqgrid loads up with data.
Is there any way to stop this happening?
I only want the search window to display when the user clicks on the find icon in the nav bar.
Thanks
Rick
07:45

Moderators
30/10/2007

Check you configuration. Also check the css files image path
and images. Use FireBug to see if all is loaded ok.
In you second way you should define button (or href) to work that -
Something like
("#mybutton").click(function(){
$(”#qpGrid”).searchGrid({sopt:['bw']});
}
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.
Everything loads up ok.
I dont want my own search button, I want to use the one in the navbar
so how do I change the sopt for the search using the inbuilt search button
Thanks
Rick
What Im saying is if I create a grid it works fine, it loads up the data and all I see is the grid
The user clicks on the search icon (find.gif) and the search window pops up., however it has all defaults in the sopt, I only need Begins With.
so when I change the searchGrid sopt to 'bw' just after creating the grid, when the grid loads the search window also is displayed, so the user has to keep closing the popup window.
Is there a way to prevent this automatically displaying the search window when I change the sopts using the navbars find.gif icon?
08:14

Moderators
30/10/2007

Aha. You can add in navGrid parameters for the search
navGrid('pager', edit,add,del,search,refresh,
{}, // edit options here
{}, // add options here
{}, //del options here
{}, // search options here
}
Refere to navgrid in docs
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:
66 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