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

Specifing the grid editable template in the same view

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 13 Jul 2017, 07:48 AM

The only way I have found to specify the editable template of a Grid is by creating a separate view inside Shared/EditorTemplates or Controller/EditorTemplates. However, I would like to generate the views dynamically (based on the permissions of the user). So is there any way that I can specify a custom template in the same view? Can ClientTemplate do that?

The Grid control can already generate a dynamic template for the popup, is there any way to override it's behavior?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 18 Jul 2017, 06:27 AM
Hi Muhammad,

It is possible to create editor template dynamically using client-side function. I have assembled small sample (editor-template.zip) which illustrates how to create column editor template dynamically using JavaScript function. Please give it a try and let me know if it works for you.


Regards,
Georgi
Progress Telerik
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 visualization (charts) and form elements.
Tags
Grid
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or