Hi folks,
i try to add a new row in my grid, but it raises an error. In my datasource i work with $expand and have something like this:
Firstname, Lastname, AttributeID, Attribute (Name,Description, Value)
In my grid the columns show Firstname, Lastname, Attribute.Name, Attribute.Description, Attribute.Value
If i try to add a new row, the error is "can't read property 'Name' of null" and that is because of the expanding items.
$kendoHtmlEncode(data.Attribute.Name==null?'':data.Attribute.Name)
Do you have an example how to work with adding new rows with expanding items? Or what am I doing wrong?
Thanks and regards,
Chris
Uncaught TypeError: Cannot read property 'Name' of null
at eval (eval at compile (kendo.all.js:194), <
anonymous
>:3:898)
at init._rowsHtml (kendo.all.js:52270)
at init._renderContent (kendo.all.js:52843)
at init.refresh (kendo.all.js:52706)
at init.proxy (jquery-1.12.4.js:529)
at init.trigger (kendo.all.js:124)
at init._process (kendo.all.js:6965)
at init._change (kendo.all.js:6925)
at init.proxy (jquery-1.12.4.js:529)
at init.trigger (kendo.all.js:124)