{"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":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-22T07:11:22Z","updated_at":"2015-02-22T22:31:04Z","closed_at":"2015-02-22T22:31:04Z","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/75467197","html_url":"https://github.com/free-jqgrid/jqGrid/issues/13#issuecomment-75467197","issue_url":"https://api.github.com/repos/free-jqgrid/jqGrid/issues/13","id":75467197,"user":{"login":"OlegKi","id":249117,"avatar_url":"https://avatars.githubusercontent.com/u/249117?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegKi","html_url":"https://github.com/OlegKi","followers_url":"https://api.github.com/users/OlegKi/followers","following_url":"https://api.github.com/users/OlegKi/following{/other_user}","gists_url":"https://api.github.com/users/OlegKi/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegKi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegKi/subscriptions","organizations_url":"https://api.github.com/users/OlegKi/orgs","repos_url":"https://api.github.com/users/OlegKi/repos","events_url":"https://api.github.com/users/OlegKi/events{/privacy}","received_events_url":"https://api.github.com/users/OlegKi/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T22:31:04Z","updated_at":"2015-02-22T22:31:04Z","body":"You are welcome! The options like `respectDefaultValues` seems to me not possible. `defaultValue` is for the choosing default value for searching dialog or for searching toolbar, but it should don't force any search request to the server. The meaning would be better to understand with searching dialog. If you open it and choose `who` column the you will have choose some option from select. If `searchoptions` don't have any `defaultValue` then *the first* option will be selected by default, but no search request will be still sent of case. Which option will be *the first* option can depend from the web browser. In some scenarios (like in case of using object form `value: {\"\":\"\", \"2\":\"Администратор\", \"4\":\"Резник Т.П.\"}`) the options will be sorted by name in some web browsers. So the first option could be not the best choice. The property `defaultValue` could makes searching dialog more deterministic.\r\n\r\nThe usage of FAQ in wiki is a good idea. I started to fill [wiki](https://github.com/free-jqgrid/jqGrid/wiki). I want to publish soon the version 4.8. The information from [readme.md](https://github.com/free-jqgrid/jqGrid) is still not full and too long. I want to create many Wiki pages and include the references on the pages in the readme.\r\n\r\nBest regards\r\nOleg"}}