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 Modal displays when you reset its options
26/06/2008
16:14
Avatar
Ricka123
Member
Members
Forum Posts: 5
Member Since:
11/03/2008
sp_UserOfflineSmall Offline

When I initialize the grid, I also need to change the search options, when I do this the search window gets displayed, How do I stop this happening? and only display the search window when the user clicks the Find button.

Thanks

Rick

27/06/2008
02:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

27/06/2008
07:13
Avatar
Ricka123
Member
Members
Forum Posts: 5
Member Since:
11/03/2008
sp_UserOfflineSmall Offline

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

27/06/2008
07:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

27/06/2008
07:55
Avatar
Ricka123
Member
Members
Forum Posts: 5
Member Since:
11/03/2008
sp_UserOfflineSmall Offline

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? 

27/06/2008
08:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

27/06/2008
08:55
Avatar
Ricka123
Member
Members
Forum Posts: 5
Member Since:
11/03/2008
sp_UserOfflineSmall Offline

Tony,

That got it

Thank you so much

Rick

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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