{"action":"opened","issue":{"url":"https://api.github.com/repos/hkalbertl/jquery.appendGrid/issues/90","repository_url":"https://api.github.com/repos/hkalbertl/jquery.appendGrid","labels_url":"https://api.github.com/repos/hkalbertl/jquery.appendGrid/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/hkalbertl/jquery.appendGrid/issues/90/comments","events_url":"https://api.github.com/repos/hkalbertl/jquery.appendGrid/issues/90/events","html_url":"https://github.com/hkalbertl/jquery.appendGrid/issues/90","id":179392295,"number":90,"title":"Dynamic Columns ","user":{"login":"sachin0606","id":14800089,"avatar_url":"https://avatars.githubusercontent.com/u/14800089?v=3","gravatar_id":"","url":"https://api.github.com/users/sachin0606","html_url":"https://github.com/sachin0606","followers_url":"https://api.github.com/users/sachin0606/followers","following_url":"https://api.github.com/users/sachin0606/following{/other_user}","gists_url":"https://api.github.com/users/sachin0606/gists{/gist_id}","starred_url":"https://api.github.com/users/sachin0606/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachin0606/subscriptions","organizations_url":"https://api.github.com/users/sachin0606/orgs","repos_url":"https://api.github.com/users/sachin0606/repos","events_url":"https://api.github.com/users/sachin0606/events{/privacy}","received_events_url":"https://api.github.com/users/sachin0606/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-27T04:00:03Z","updated_at":"2016-09-27T04:00:03Z","closed_at":null,"body":"Hi \r\nmainly thanks for such a great tool. \r\n\r\ni am using it in one of my project where i need to publish dynamic column but unable to use this tool as even i get the rquired fromat of string through JSON tool says column data required. \r\n\r\ncode is as below for coloumn data : \r\n\r\njavascript \r\n\r\n $.ajax({\r\n                    type: \"POST\",\r\n                    url: \"frm_Sales.aspx/GetColumnsFromDB\",\r\n                    data: '{}',\r\n                    contentType: \"application/json; charset=utf-8\",\r\n                    dataType: \"json\",\r\n                    success: OnSuccess,\r\n                    failure: function (response) {\r\n                        alert(response.d);\r\n                    }\r\n                });\r\n function OnSucces(response) {\r\n $('#tblAppendGrid').appendGrid({\r\n                    caption: 'Parts Details',\r\n                    initRows: 0,\r\n                    columns: response.d\r\n                });\r\n}\r\n\r\n\r\n\r\nand codebehind i genedate string with required format :\r\n[{ name: 'id', display: 'Part No', type: 'text', invisible: true , ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '10px' } },\r\n                            { name: 'Partno', display: 'Part No', type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '160px' } },\r\n                            { name: 'Partname', display: 'Part Name', type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '160px' } },\r\n                            {\r\n                                name: 'year', display: myHiddenValue, type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' }, onChange: function (evt, rowIndex) {\r\n                                    doCalculation(evt.target,evt.rowindex);\r\n                                }\r\n                            },\r\n                            {\r\n                                name: 'year2', display: year2, type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' }, onChange: function (evt, rowIndex) {\r\n                                    doCalculation(evt.target, evt.rowindex);\r\n                                }\r\n                            },\r\n                            {\r\n                                name: 'year3', display: year3, type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' }, onChange: function (evt, rowIndex) {\r\n                                    doCalculation(evt.target, evt.rowindex);\r\n                                }\r\n                            },\r\n                            {\r\n                                name: 'year4', display: year4, type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' }, onChange: function (evt, rowIndex) {\r\n                                    doCalculation(evt.target, evt.rowindex);\r\n                                }\r\n                            },\r\n                            {\r\n                                name: 'year5', display: year5, type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' }, onChange: function (evt, rowIndex) {\r\n                                    doCalculation(evt.target, evt.rowindex);\r\n                                }\r\n                            },\r\n                            { name: 'qty', display: 'Mean', type: 'text', ctrlAttr: { maxlength: 100 }, ctrlCss: { width: '80px' } }]\r\n\r\n\r\n\r\n\r\n\r\nthanks \r\n\r\n"}}
{"actor":{"display_login":"sachin0606"}}