{"action":"created","issue":{"url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13","labels_url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13/comments","events_url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13/events","html_url":"https://github.com/free-jqgrid/jqGrid/issues/13","id":58493708,"number":13,"title":"Predefined values in FilterToolbar","user":{"login":"smartcorestudio","id":2891792,"avatar_url":"https://avatars.githubusercontent.com/u/2891792?v=3","gravatar_id":"","url":"https://api.github.com/users/smartcorestudio","html_url":"https://github.com/smartcorestudio","followers_url":"https://api.github.com/users/smartcorestudio/followers","following_url":"https://api.github.com/users/smartcorestudio/following{/other_user}","gists_url":"https://api.github.com/users/smartcorestudio/gists{/gist_id}","starred_url":"https://api.github.com/users/smartcorestudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartcorestudio/subscriptions","organizations_url":"https://api.github.com/users/smartcorestudio/orgs","repos_url":"https://api.github.com/users/smartcorestudio/repos","events_url":"https://api.github.com/users/smartcorestudio/events{/privacy}","received_events_url":"https://api.github.com/users/smartcorestudio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-22T07:11:22Z","updated_at":"2015-02-22T19:19:50Z","closed_at":null,"body":"I think that is a very common case, but I didn't find any elegant solution for this. Let's imagine that we have jqQrid with user actions log, for example. By default it has no predefined filters. Also we can have links like \"Show user actions\" on users profile pages, which open logs for this user. So, user will be selected in the FilterToolbar and table will be prefiltered\r\n![2015-02-22 09_54_19- dekonadzor ru](https://cloud.githubusercontent.com/assets/2891792/6317765/0634da3a-ba79-11e4-8fd7-0aefbf58f3ff.png)\r\nI tried to find solutions for this simple use case, but I had no luck. This solution http://stackoverflow.com/questions/2440417/jqgrid-filter-toolbar-initial-default-value/3165512#3165512 looks a bit tricky, don't you think so? Is it possible to have this built-in, without need to prevent initial loading by changing datatype and manual triggering? I.e. we have jqGrid tuned for loading data from server. If we don't have any predefined values in the filter toolbar it just loads all the data, if we have some - grid respects it and loads prefiltered data\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/comments/75452189","html_url":"https://github.com/free-jqgrid/jqGrid/issues/13#issuecomment-75452189","issue_url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13","id":75452189,"user":{"login":"smartcorestudio","id":2891792,"avatar_url":"https://avatars.githubusercontent.com/u/2891792?v=3","gravatar_id":"","url":"https://api.github.com/users/smartcorestudio","html_url":"https://github.com/smartcorestudio","followers_url":"https://api.github.com/users/smartcorestudio/followers","following_url":"https://api.github.com/users/smartcorestudio/following{/other_user}","gists_url":"https://api.github.com/users/smartcorestudio/gists{/gist_id}","starred_url":"https://api.github.com/users/smartcorestudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartcorestudio/subscriptions","organizations_url":"https://api.github.com/users/smartcorestudio/orgs","repos_url":"https://api.github.com/users/smartcorestudio/repos","events_url":"https://api.github.com/users/smartcorestudio/events{/privacy}","received_events_url":"https://api.github.com/users/smartcorestudio/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T19:19:50Z","updated_at":"2015-02-22T19:19:50Z","body":"Вот скриншот как выглядит страница стразу после открытия, если я передал в нее необязательный параметр для фильтрации по одному из полей. Он корректно прчитался и отобразился в фильтре, но не был отослан на сервер.\r\n![2015-02-22 22_09_48- dekonadzor ru](https://cloud.githubusercontent.com/assets/2891792/6319921/c3b294fa-bae0-11e4-8a9f-403034af252e.png)\r\n"}}