{"action":"created","issue":{"url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/54","repository_url":"https://api.github.com/repos/MyToolkit/MyToolkit","labels_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/54/comments","events_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/54/events","html_url":"https://github.com/MyToolkit/MyToolkit/issues/54","id":142941264,"number":54,"title":"How to use the order of the records in a DataGrid in a backend data source","user":{"login":"Astone","id":127750,"avatar_url":"https://avatars.githubusercontent.com/u/127750?v=3","gravatar_id":"","url":"https://api.github.com/users/Astone","html_url":"https://github.com/Astone","followers_url":"https://api.github.com/users/Astone/followers","following_url":"https://api.github.com/users/Astone/following{/other_user}","gists_url":"https://api.github.com/users/Astone/gists{/gist_id}","starred_url":"https://api.github.com/users/Astone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astone/subscriptions","organizations_url":"https://api.github.com/users/Astone/orgs","repos_url":"https://api.github.com/users/Astone/repos","events_url":"https://api.github.com/users/Astone/events{/privacy}","received_events_url":"https://api.github.com/users/Astone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MyToolkit/MyToolkit/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-23T11:56:44Z","updated_at":"2016-04-05T14:49:53Z","closed_at":null,"body":"I'm using the DataGrid with many records (> 100k), so I implemented some sort of backend filtering and pagination. To get the correct ordering from my data source (a JSON-RPC-API) I need to know which OrderIndex (i.e. which column) has been selected and in which direction the records should be sorted. I also need to reload my data whenever someone clicks on a column header. I couldn't find an EventHandler to do this.\r\n\r\nIs this possible in the current DataGrid implementation? How can I do this in my code? Should I implement this in my ViewModel? Or where could I implement this in MyToolkit.DataGrid?"},"comment":{"url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/comments/205841489","html_url":"https://github.com/MyToolkit/MyToolkit/issues/54#issuecomment-205841489","issue_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/54","id":205841489,"user":{"login":"Astone","id":127750,"avatar_url":"https://avatars.githubusercontent.com/u/127750?v=3","gravatar_id":"","url":"https://api.github.com/users/Astone","html_url":"https://github.com/Astone","followers_url":"https://api.github.com/users/Astone/followers","following_url":"https://api.github.com/users/Astone/following{/other_user}","gists_url":"https://api.github.com/users/Astone/gists{/gist_id}","starred_url":"https://api.github.com/users/Astone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astone/subscriptions","organizations_url":"https://api.github.com/users/Astone/orgs","repos_url":"https://api.github.com/users/Astone/repos","events_url":"https://api.github.com/users/Astone/events{/privacy}","received_events_url":"https://api.github.com/users/Astone/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T14:49:53Z","updated_at":"2016-04-05T14:49:53Z","body":"Well I use backend pagination, so I select only a subset of ca. 30 items from my database storing the 100k records, that makes it fast enough :)\r\n\r\nAnd yeah, unfortunately I do need an event, because changing the order changes the items in the subset. For now I can just disable ordering on each column and then I'll just wait and see if my users start complaining or not :p"}}