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
v3.5 Hidden fields showing in Search Box Drop Down
08/07/2009
12:41
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Tony,

Under V3.5. Some of my fields listed in my column model are dynamically hidden based on my users parameters.  I just noticed that these fields are listed in the field list in the search box.  Example code:

      // Hide the site name column per user settings
      var hidesite = <cfoutput>#session.myGridOC_Site_Name#</cfoutput>;
      if(hidesite == 0){
      $("#slist").hideCol("x_site_name");
      }

Is there some code I can add to the above code so that field won't be listed in the search field drop down?

I know that you are still working on this version, but is there some documentation available that list the current methods, calls etc.?

Thanks,

Jim

10/07/2009
06:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do you have read the changes for the searchFilter?

Also use

recreateFilter : true 
in the parameters in order do have what you want.

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

21/07/2009
09:33
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Tony,

Where can I find the "changes for the searchFilter" for V3.5.  I've searched the forum for that pharse and words and can't find it.

Using the latest V3.5 code, my search box comes up at the same level as the grid and both are greyed out out.  What js & css files are used for the search function?

Thanks for all your help Tony,

Jim

22/07/2009
01:30
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

First I will ask - what type of search do you use? - filertGrid, filterToolbar or searchGrid (used in navigator)?

From the package 3.5 in  Changes.txt  there is Description of the new searchGrid method.

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.

22/07/2009
09:17
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Tony,

I believe it is the searchGrid:

    $.extend($.jgrid.search,
    {caption:"Filter",
       Find:'Search',
       //width:'400',       //not used anymore v3.5
       checkInput:true,
       //top:200,       //not used anymore v3.5
       //left:400,        //not used anymore v3.5
       sopt: ['eq','ne','lt','le','gt','ge','bw','cn']     
      });
     
   $("#slist").navGrid("#pager",{edit:false,add:false,del:false,searchtext:"Filter"}),

The search box is coming up greyed out as is the grid. 

 screendumpImage Enlarger

My js:     jquery.jqGrid.min.js is build 5  5/24/09   (I also tried the debugger include - jquery.jqGrid.js)

<link rel="stylesheet" type="text/css" media="screen" href="../css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../css/jquery-ui-1.7.2.custom.css" />

<script src="jquery.js" type="text/javascript"></script>
<script src="js3-5/grid.locale-en.js" type="text/javascript"></script>
<script src="js3-5/jquery.jqGrid.min.js" type="text/javascript"></script>

Thanks Tony,

Jim

27/07/2009
03:04
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I see you use the development version from src directory. Please inclide the ui-jqgrid.css from root css directory or simple include the  jquery.searchFilter.css too. This is a common mistake.

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.

28/07/2009
08:05
Avatar
Jim P
Member
Members
Forum Posts: 102
Member Since:
29/01/2009
sp_UserOfflineSmall Offline

Thanks Tony,

The search box is useable now but I can't drag it around the screen.  It is stuck in the top right corner.  What else an I missing?

Jim

28/07/2009
09:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Check what you download - also be a sure that you have jqDnR.js included

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.

17/09/2009
17:03
Avatar
Pilot
Guest
Guests

seems you should attache jquery.searchFilter.css from http://github.com/tonytomov/jq.....aster/css/

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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