{"action":"created","issue":{"url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/20","repository_url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid","labels_url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/20/comments","events_url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/20/events","html_url":"https://github.com/Mewriick/Blazor.FlexGrid/issues/20","id":390433272,"node_id":"MDU6SXNzdWUzOTA0MzMyNzI=","number":20,"title":"Two different grid layouts","user":{"login":"pdavis68","id":2781885,"node_id":"MDQ6VXNlcjI3ODE4ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/2781885?v=4","gravatar_id":"","url":"https://api.github.com/users/pdavis68","html_url":"https://github.com/pdavis68","followers_url":"https://api.github.com/users/pdavis68/followers","following_url":"https://api.github.com/users/pdavis68/following{/other_user}","gists_url":"https://api.github.com/users/pdavis68/gists{/gist_id}","starred_url":"https://api.github.com/users/pdavis68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdavis68/subscriptions","organizations_url":"https://api.github.com/users/pdavis68/orgs","repos_url":"https://api.github.com/users/pdavis68/repos","events_url":"https://api.github.com/users/pdavis68/events{/privacy}","received_events_url":"https://api.github.com/users/pdavis68/received_events","type":"User","site_admin":false},"labels":[{"id":969422190,"node_id":"MDU6TGFiZWw5Njk0MjIxOTA=","url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-12T22:18:07Z","updated_at":"2018-12-17T17:08:44Z","closed_at":null,"author_association":"NONE","body":"I have a grid that lists employees. I want, for some users with the right permissions, to be able to see home & mobile phone numbers, but for most users, I don't want them to be able to see those columns.\r\n\r\nHow would I best programmatically hide columns at runtime in Flexgrid?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/comments/447921898","html_url":"https://github.com/Mewriick/Blazor.FlexGrid/issues/20#issuecomment-447921898","issue_url":"https://api.github.com/repos/Mewriick/Blazor.FlexGrid/issues/20","id":447921898,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzkyMTg5OA==","user":{"login":"Mewriick","id":16129701,"node_id":"MDQ6VXNlcjE2MTI5NzAx","avatar_url":"https://avatars1.githubusercontent.com/u/16129701?v=4","gravatar_id":"","url":"https://api.github.com/users/Mewriick","html_url":"https://github.com/Mewriick","followers_url":"https://api.github.com/users/Mewriick/followers","following_url":"https://api.github.com/users/Mewriick/following{/other_user}","gists_url":"https://api.github.com/users/Mewriick/gists{/gist_id}","starred_url":"https://api.github.com/users/Mewriick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mewriick/subscriptions","organizations_url":"https://api.github.com/users/Mewriick/orgs","repos_url":"https://api.github.com/users/Mewriick/repos","events_url":"https://api.github.com/users/Mewriick/events{/privacy}","received_events_url":"https://api.github.com/users/Mewriick/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T17:08:44Z","updated_at":"2018-12-17T17:08:44Z","author_association":"OWNER","body":"I think that if you want do it this way you have to use for adding attributes this:\r\n\r\n```\r\nbuilder.OpenComponent(seq++, typeof(Blazor.FlexGrid.Components.GridView));\r\nbuilder.AddAttribute(seq++, \"DataAdapter\", RuntimeHelpers.TypeCheck(EmployeeAdapter));\r\nbuilder.AddAttribute(seq++, \"LazyLoadingOptions\", RuntimeHelpers.TypeCheck(LazyLoadingOptions));\r\nbuilder.AddAttribute(seq++, \"PageSize\", RuntimeHelpers.TypeCheck(10));\r\n```"}}
{"actor":{"display_login":"Mewriick"}}