Hello
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.
|
1 2 3 4 5 6 |
var template1 = { \"groupOp\": \"AND\", \"rules\": [ { \"field\": \"SourceTrustFlow\", \"op\": \"gt\", \"data\": \"10\" }, ] }; |
But i want to show this values also in the toolbar on the first view.
So i tried:
|
1 2 3 4 5 6 7 |
jQuery(\"#backlinksgrid\").jqGrid('setGridParam', { postData: { filters: template1 } }); $(\"#backlinksgrid\").trigger(\"reloadGrid\"); |
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
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top