{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/143","labels_url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/143/comments","events_url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/143/events","html_url":"https://github.com/vaadin/vaadin-grid/issues/143","id":105583562,"number":143,"title":"It should be possible to get a column reference with a column name, not just index","user":{"login":"jounik","id":66382,"avatar_url":"https://avatars.githubusercontent.com/u/66382?v=3","gravatar_id":"","url":"https://api.github.com/users/jounik","html_url":"https://github.com/jounik","followers_url":"https://api.github.com/users/jounik/followers","following_url":"https://api.github.com/users/jounik/following{/other_user}","gists_url":"https://api.github.com/users/jounik/gists{/gist_id}","starred_url":"https://api.github.com/users/jounik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jounik/subscriptions","organizations_url":"https://api.github.com/users/jounik/orgs","repos_url":"https://api.github.com/users/jounik/repos","events_url":"https://api.github.com/users/jounik/events{/privacy}","received_events_url":"https://api.github.com/users/jounik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cwayfinder","id":355902,"avatar_url":"https://avatars.githubusercontent.com/u/355902?v=3","gravatar_id":"","url":"https://api.github.com/users/cwayfinder","html_url":"https://github.com/cwayfinder","followers_url":"https://api.github.com/users/cwayfinder/followers","following_url":"https://api.github.com/users/cwayfinder/following{/other_user}","gists_url":"https://api.github.com/users/cwayfinder/gists{/gist_id}","starred_url":"https://api.github.com/users/cwayfinder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwayfinder/subscriptions","organizations_url":"https://api.github.com/users/cwayfinder/orgs","repos_url":"https://api.github.com/users/cwayfinder/repos","events_url":"https://api.github.com/users/cwayfinder/events{/privacy}","received_events_url":"https://api.github.com/users/cwayfinder/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-09-09T12:10:49Z","updated_at":"2015-09-17T10:33:51Z","closed_at":null,"body":"Currently it is only possible to reference a certain column using it’s index in the columns array. It would be helpful if you could access a column using it’s name property, in cases when the order or the columns array is not known or is changed by user input.\r\n\r\nE.g.\r\n```javascript\r\ngrid.columns = [\r\n  {name: \"user.name.last\"},\r\n  {name: \"user.name.first\"}\r\n];\r\n\r\ngrid.columns[\"user.name.last\"].renderer = function(...) {\r\n  ...\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/comments/141039063","html_url":"https://github.com/vaadin/vaadin-grid/issues/143#issuecomment-141039063","issue_url":"https://api.github.com/repos/vaadin/vaadin-grid/issues/143","id":141039063,"user":{"login":"jounik","id":66382,"avatar_url":"https://avatars.githubusercontent.com/u/66382?v=3","gravatar_id":"","url":"https://api.github.com/users/jounik","html_url":"https://github.com/jounik","followers_url":"https://api.github.com/users/jounik/followers","following_url":"https://api.github.com/users/jounik/following{/other_user}","gists_url":"https://api.github.com/users/jounik/gists{/gist_id}","starred_url":"https://api.github.com/users/jounik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jounik/subscriptions","organizations_url":"https://api.github.com/users/jounik/orgs","repos_url":"https://api.github.com/users/jounik/repos","events_url":"https://api.github.com/users/jounik/events{/privacy}","received_events_url":"https://api.github.com/users/jounik/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T10:33:51Z","updated_at":"2015-09-17T10:33:51Z","body":"Current workaround:\r\n\r\n```javascript\r\nvar nameCol = grid.columns.filter(function(col) { return col.name == \"user.name.first\"; })[0];\r\n```"}}