Home › Forums › Guriddo jqGrid JS › Help › Filter without click on the searchbutton
Tony sorry for asking so many questions.
I want to show the filter/search on the top of the grid
without clicking on the “search button” how can I
make it that way?
Thanks paapie
Hello,
Define your custom buton or link and then
$(…).click(function() {
$(“#mygrid”).searchGrid( params );
})
Seed docs for parameters
Regards
Tony
Tony can you give me a good example
dont know what you mean.
Regards Frank
If you have a button with a Id mybutton, then you can do (I suppose you want to use searchGrid from formedit) and you grid is with id mygrid then:
jQuery(“#mybutton”).click(function() {
jQuery(“#mygrid”).searchGrid( params );
});
where params is a set of parameters for this method. See the docs for searchGrid available parameters.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS