Forum


13:24

16/12/2009

Hi
I'm struggling with a couple of things related to the "Simple" Search facility;
1) the dialog box that appears is always in the top left hand corner of the grid. I'd like to center it on the page so I've tried changing the css file to;
.ui-searchFilter table {position:relative; margin: 7px auto;}
as mentioned on the "single searching" page in the documentation and have also tried seeting specific "top" & "left" parameters in the search options as mentioned on the Live Data Manipulation->Searching Data demo but neither seems to move it from it's default position.
2) I've a date field I'd like to be able to search on so ideally I'd like to be able to present the user with a datepicker when the user chooses this particular field from the drop-down. I've found a couple of references suggesting that this might be possible (some code in the dataInit part of the "searchoptions" in the colModel) but I can't find any examples of how to do this - is it possible to do this with the simple search facility or am I better creating my own modal dialog box?
Chris
22:09

Moderators
30/10/2007

Hello,
1) The css change should work. I have implemented it before some time. Also I will need to test this again.
Sorry that the demo pages are not updated. The top and left are not available in the new search plugin, these was
available in the old one - versions <=3.4.
2. I think that in the wiki page there is a exmple given in the description.
http://www.trirand.com/jqgridw.....rch_config
here is some code to implement a datapicker UI.
$("#mygrid").jqGrid({
...
colModel: [
..
{name:'myname',...searchoptions:{ dataInit: function(elem) { $(elem).datepicker(...); } ... }....},
...
]
..
});
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:
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