{"action":"opened","issue":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/1160","repository_url":"https://api.github.com/repos/tabalinas/jsgrid","labels_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/1160/labels{/name}","comments_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/1160/comments","events_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/1160/events","html_url":"https://github.com/tabalinas/jsgrid/issues/1160","id":347716127,"node_id":"MDU6SXNzdWUzNDc3MTYxMjc=","number":1160,"title":"Grid dissapears when adding custom date field","user":{"login":"alexisc67","id":12430569,"node_id":"MDQ6VXNlcjEyNDMwNTY5","avatar_url":"https://avatars2.githubusercontent.com/u/12430569?v=4","gravatar_id":"","url":"https://api.github.com/users/alexisc67","html_url":"https://github.com/alexisc67","followers_url":"https://api.github.com/users/alexisc67/followers","following_url":"https://api.github.com/users/alexisc67/following{/other_user}","gists_url":"https://api.github.com/users/alexisc67/gists{/gist_id}","starred_url":"https://api.github.com/users/alexisc67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexisc67/subscriptions","organizations_url":"https://api.github.com/users/alexisc67/orgs","repos_url":"https://api.github.com/users/alexisc67/repos","events_url":"https://api.github.com/users/alexisc67/events{/privacy}","received_events_url":"https://api.github.com/users/alexisc67/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-05T17:26:48Z","updated_at":"2018-08-05T17:26:48Z","closed_at":null,"author_association":"NONE","body":"<!---\r\n\r\nPlease attempt to fit your report into 1 of 3 categories and include the following information:\r\n\r\n1. Bug Reports:\r\n    A) Expected Behavior\r\n    B) Actual Behavior\r\n    C) Steps to Reproduce\r\n    \r\n2. Feature Request:\r\n    A) Desired Feature\r\n    B) Justification for Addition\r\n    \r\n3. Help Request/Question:\r\n    A) Clearly state your problem\r\n    B) Include your code\r\n    C) If Applicable, attach a JSFiddle or CodePen\r\n    \r\n-->\r\n\r\n<!--- Begin Report Below This Line -->\r\nHi,\r\n\r\nWhen i add a date custom field with the code below, the whole grid is not shown. I have tried with other examples with the same behavior. It happens in all browsers. The date picker does work in jsfiddle \r\nhttp://jsfiddle.net/tabalinas/doaw2zgs/.\r\n\r\n    var MyDateField = function (config) {\r\n        jsGrid.Field.call(this, config);\r\n    };\r\n\r\n    MyDateField.prototype = new jsGrid.Field({\r\n\r\n        sorter: function (date1, date2) {\r\n            return new Date(date1) - new Date(date2);\r\n        },\r\n       itemTemplate: function (value) {\r\n            return new Date(value).toDateString();\r\n        },\r\n        insertTemplate: function (value) {\r\n            return this._insertPicker = $(\"<input class='date-picker'>\").datetimepicker();\r\n        },\r\n        editTemplate: function (value) {\r\n            return this._editPicker = $(\"<input class='date-picker'>\").datetimepicker();\r\n        },\r\n        insertValue: function () {\r\n            return this._insertPicker.data(\"DateTimePicker\").useCurrent();\r\n        },\r\n        editValue: function () {\r\n            return this._editPicker.data(\"DateTimePicker\").useCurrent();\r\n        }\r\n    });\r\n\r\n    jsGrid.fields.date = MyDateField;\r\n\r\n\r\nThen I add the type to my field:\r\n\r\n        fields: [\r\n            { name: \"origin_date\", type: \"date\", width: 150 },\r\n\r\nMany thanks in advance,\r\nAlexis"}}
{"actor":{"display_login":"alexisc67"}}