{"action":"created","issue":{"url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/15","labels_url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/15/comments","events_url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/15/events","html_url":"https://github.com/NAVPERF/NAVLoadTest/issues/15","id":114463673,"number":15,"title":"Allow easier sorting and filtering","user":{"login":"tfenster","id":15346084,"avatar_url":"https://avatars.githubusercontent.com/u/15346084?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenster","html_url":"https://github.com/tfenster","followers_url":"https://api.github.com/users/tfenster/followers","following_url":"https://api.github.com/users/tfenster/following{/other_user}","gists_url":"https://api.github.com/users/tfenster/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenster/subscriptions","organizations_url":"https://api.github.com/users/tfenster/orgs","repos_url":"https://api.github.com/users/tfenster/repos","events_url":"https://api.github.com/users/tfenster/events{/privacy}","received_events_url":"https://api.github.com/users/tfenster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-01T10:54:01Z","updated_at":"2015-11-02T21:09:46Z","closed_at":null,"body":"Hello,\r\n\r\nI need to do some sorting and filtering on a table in a subpage as we are currently looking into different ways to implement the table and want to find out what the performance impact for each is. As I couldn't find an easier way I am doing the following to store all columns and then do some sorting and filtering:\r\n\r\n```c#\r\n        private Dictionary<string, ClientRepeaterColumnControl> getExplorerColumns()\r\n        {\r\n            if (explorerColumns == null)\r\n            {\r\n                explorerColumns = new Dictionary<string, ClientRepeaterColumnControl>();\r\n\r\n                foreach (ClientRepeaterColumnControl column in explorerPage.Repeater().Columns)\r\n                {\r\n                    if (!explorerColumns.ContainsKey(column.Caption))\r\n                        explorerColumns.Add(column.Caption, column);\r\n                }\r\n            }\r\n\r\n            return explorerColumns;\r\n        }\r\n\r\n        public void filter(string filterField, string filterValue, UserContext userContext)\r\n        {\r\n            var column = getExplorerColumns()[filterField];\r\n            ClientLogicalForm filters = column.Action(\"Filter...\").InvokeCatchDialog();\r\n            TestScenario.SaveValueWithDelay(filters.Control(filterField), filterValue);\r\n            filters.Action(\"OK\").Invoke();\r\n        }\r\n\r\n        public void sortAscending(string sortField)\r\n        {\r\n            var column = getExplorerColumns()[sortField];\r\n            column.Action(\"Ascending\").Invoke();\r\n        }\r\n\r\n        public void sortDescending(string sortField)\r\n        {\r\n            var column = getExplorerColumns()[sortField];\r\n            column.Action(\"Descending\").Invoke();\r\n        }\r\n```\r\nIs there an easier or better way to do this?\r\n\r\nRegards,\r\nTobias"},"comment":{"url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/comments/153157368","html_url":"https://github.com/NAVPERF/NAVLoadTest/issues/15#issuecomment-153157368","issue_url":"https://api.github.com/repos/NAVPERF/NAVLoadTest/issues/15","id":153157368,"user":{"login":"tfenster","id":15346084,"avatar_url":"https://avatars.githubusercontent.com/u/15346084?v=3","gravatar_id":"","url":"https://api.github.com/users/tfenster","html_url":"https://github.com/tfenster","followers_url":"https://api.github.com/users/tfenster/followers","following_url":"https://api.github.com/users/tfenster/following{/other_user}","gists_url":"https://api.github.com/users/tfenster/gists{/gist_id}","starred_url":"https://api.github.com/users/tfenster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfenster/subscriptions","organizations_url":"https://api.github.com/users/tfenster/orgs","repos_url":"https://api.github.com/users/tfenster/repos","events_url":"https://api.github.com/users/tfenster/events{/privacy}","received_events_url":"https://api.github.com/users/tfenster/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T21:09:46Z","updated_at":"2015-11-02T21:09:46Z","body":"Hi David,\r\n\r\nthanks, once again worked perfectly. Probably a question that shows that I am not that familiar with git: How can I add this to my repo? It only shows that I am some commits ahead of your repo but I can't get your changes to mine. Can you kindly give me an indication where to stark looking?\r\n\r\nRegards,\r\nTobias"}}