{"action":"created","issue":{"url":"https://api.github.com/repos/vedmack/yadcf/issues/419","repository_url":"https://api.github.com/repos/vedmack/yadcf","labels_url":"https://api.github.com/repos/vedmack/yadcf/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/vedmack/yadcf/issues/419/comments","events_url":"https://api.github.com/repos/vedmack/yadcf/issues/419/events","html_url":"https://github.com/vedmack/yadcf/issues/419","id":270002842,"number":419,"title":"exFilterColumn how to load from localstorage","user":{"login":"lenamtl","id":2241324,"avatar_url":"https://avatars3.githubusercontent.com/u/2241324?v=4","gravatar_id":"","url":"https://api.github.com/users/lenamtl","html_url":"https://github.com/lenamtl","followers_url":"https://api.github.com/users/lenamtl/followers","following_url":"https://api.github.com/users/lenamtl/following{/other_user}","gists_url":"https://api.github.com/users/lenamtl/gists{/gist_id}","starred_url":"https://api.github.com/users/lenamtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenamtl/subscriptions","organizations_url":"https://api.github.com/users/lenamtl/orgs","repos_url":"https://api.github.com/users/lenamtl/repos","events_url":"https://api.github.com/users/lenamtl/events{/privacy}","received_events_url":"https://api.github.com/users/lenamtl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-31T15:27:55Z","updated_at":"2017-12-31T07:25:08Z","closed_at":"2017-11-23T08:57:26Z","author_association":"NONE","body":"Hi, I'm having this case \r\nI'm saving the localstorage value for the tables.\r\n\r\nI have a filter by default using exFilterColumn\r\nIt save the value correctly\r\nThe problem I'm having is\r\nIf the user reset the filter \r\nwhen reloading the page the exFilterColumn default value is back again not the value from the localstorage\r\n\r\nSo is there a way to use a default value and if the user use another filter or reset it it will take new value from localstorage without forcing the default value it on every page load?\r\n\r\n```\r\nyadcf.exFilterColumn(table18, [\r\n\t[2, \"Active\"]\r\n]);\r\n```\r\n\r\nThere is a solution oSearch which is work the way I need but it is for all columns not for a specific column https://legacy.datatables.net/ref#oSearch\r\n`\"oSearch\": {\"sSearch\": \"Active\"},`\r\n\r\nAnyone have a solution for this?"},"comment":{"url":"https://api.github.com/repos/vedmack/yadcf/issues/comments/354589616","html_url":"https://github.com/vedmack/yadcf/issues/419#issuecomment-354589616","issue_url":"https://api.github.com/repos/vedmack/yadcf/issues/419","id":354589616,"user":{"login":"vedmack","id":1679967,"avatar_url":"https://avatars0.githubusercontent.com/u/1679967?v=4","gravatar_id":"","url":"https://api.github.com/users/vedmack","html_url":"https://github.com/vedmack","followers_url":"https://api.github.com/users/vedmack/followers","following_url":"https://api.github.com/users/vedmack/following{/other_user}","gists_url":"https://api.github.com/users/vedmack/gists{/gist_id}","starred_url":"https://api.github.com/users/vedmack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vedmack/subscriptions","organizations_url":"https://api.github.com/users/vedmack/orgs","repos_url":"https://api.github.com/users/vedmack/repos","events_url":"https://api.github.com/users/vedmack/events{/privacy}","received_events_url":"https://api.github.com/users/vedmack/received_events","type":"User","site_admin":false},"created_at":"2017-12-31T07:25:08Z","updated_at":"2017-12-31T07:25:08Z","author_association":"OWNER","body":"You have to find a way to maintain / get the values that the datatables storing in the local storage by your self, its not something that is related to yadcf, see this [localStorage for state saving](https://datatables.net/blog/2012-01-16) and try to get to the point where you can tell what are the values that where used by the datatables filters, then you will be able to use those values if needed, \r\n\r\n## p.s.\r\n\r\n**Isnt state saving is what you want? because yadcf support statesaving out of the box**"}}
{"actor":{"display_login":"vedmack"}}