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

Embedding the Grid within its own EditorFor Template

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 01 Apr 2019, 07:21 PM

I'm building an MVC5 web app with a single shared Index view which calls all the associated Editor Templates. It's been working out great until I got to the Kendo Grid. 

It seems that the Kendo Grid in InCell or InLine editing is not supported when the grid is inside an editor template. If I do so I'm getting a javascript error Cannot read property '[propname]' of null. Only when I move the grid from its editor template to a standard razor view does it work. I realize that the grid actually fetches its property's editor template but that shouldn't be stopping it as I'm doing the same in other complex elements.

Is there a way this can work with InCell or InLine editing? If not supported, is there a component I can implement/override?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 03 Apr 2019, 01:51 PM
Hello Christian,

I am not sure that I fully understand the case. What I understand at this point is that an exception occurs when the grid is within an editor view. Please correct me if I am wrong. Editor views are pretty much partial views which are inserted within the main view. Therefore, you should not face any issues by adding a grid within an editor view. Could you please provide us with the full configuration of the grid and the full stack trace of the exception?

Having said that, sharing a demo that clearly replicates the issue would definitely help us fully understand the case and we will be able to provide further assistance to the best of our knowledge.
 

Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or