Forum


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
06:57

Moderators
30/10/2007

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.
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
01:30

Moderators
30/10/2007

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.
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.
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
03:04

Moderators
30/10/2007

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.
09:13

Moderators
30/10/2007

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:03

seems you should attache jquery.searchFilter.css from http://github.com/tonytomov/jq.....aster/css/
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66