Home › Forums › Guriddo jqGrid JS › Default Selections in Toolbar Search
This topic contains 2 replies, has 2 voices, and was last updated by jrewing 5 months ago.
i want to initialize the toolbar search filters with some initial selections. I found some posts like http://guriddo.net/?topic=toolbar-question and so one – but not the right for me.
So i defined a search template. This is working fine, and shows me the right results.
But i want to show this values also in the toolbar on the first view.
So i tried:
There is no error in the JS-Console of my browser. But the filter is not set. Did someone have an advice, how i can resolve this ? best regards Tom
You can use the defaultValue option in serchoptions and then apply your approach.
Documentation for searchoptions is here
and then you can apply your approach.
Here is a demo in PHP
Guriddo Support Team
Thank you. With this i search and found the solution. In my config i set datatype to local and switch it later to json. Then the filter works
You must be logged in to reply to this topic.
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS