This is a migrated thread and some comments may be shown as answers.

Custom editor window using dataItem that has a period in it

2 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 22 Feb 2017, 05:18 PM

I'm tyring bring up a custom Editor with only a few fields using the template on popup attribute of the grid, however my grid has data in it with a period, example "table.field".  The data passest to the window, but when I reference it I'm not getting what I expected.  I had anticipated that the data would need to be referenced like ['table.field'], however when I try to do that I get an error.  If I use "['table.field']" I get the actual text instead of the represented value in the grid.

 

Here is a dojo of my example:  http://dojo.telerik.com/@pnd@qad.com/oYIXU

If you hit the report button, you can see that it is presenting the screen with the table.field name but not the represented values.

Any help would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 22 Feb 2017, 06:29 PM
Thanks to another forum post I was able to fix it by using data['table.fieldname'] in the template to get the correct value. 
0
Stefan
Telerik team
answered on 24 Feb 2017, 08:57 AM
Hello Paul,

I`m glad to hear that the issue is resolved, using the resources available in the forum.

Also, thank you for sharing the solution in this thread with the Kendo UI community.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or