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

[Solved] Problem with a Datetime field on grid inside custom popup edit template

2 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Enio
Top achievements
Rank 1
Enio asked on 09 Apr 2015, 03:07 PM

I was trying to develop a complex view that is composed by the following structure:

I have a MainGrid that is editable by a custom popup template. Inside this custom popup template I'm trying to render another Grid (SubGrid) and my problem is because one field (column) of this SubGrid is DateTime. When the browser try to render this bundle it raises a JS exception ILLEGAL TOKEN, but when I remove the DateTime field of the SubGrid the browser can render normally the both grid (MainGrid with custom template and SubGrid).

Do you know if there are any issue about DateTime field on grid inside custom template editor for another grid?

How could I solve this issue ?

 Thanks

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 13 Apr 2015, 07:55 AM
Hi Enio,

Did you set the field type to "date" in the dataSource.schema.model?
Can you provide code snippets demonstrating your current implementation so I can examine them and advice you further?

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Enio
Top achievements
Rank 1
answered on 13 Apr 2015, 01:23 PM

It was my fault, I forgot to use the command .ToClientTemplate() to render the grid inside the template.

 

Now its working.

Tags
Grid
Asked by
Enio
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Enio
Top achievements
Rank 1
Share this question
or