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

Dynamic Editor Template for each row in Grid

1 Answer 604 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 23 Jul 2020, 04:23 PM

Is it possible to do use a dynamic editor on a column with C# wrappers, like the example below does for jquery?  

https://docs.telerik.com/kendo-ui/knowledge-base/grid-use-dynamic-editor

How can I achieve similar functionality?  

I have a simple Preference object that can have different types of values.  (Boolean, String, Number, etc).  

The preference object has a DataType that tells it what type for each row.  I would like to use this value to determine what editortemplate to use.  

Thank you very much for your help.  

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 28 Jul 2020, 10:44 AM

Hello Nick,

I would suggest you take a look at the Forum thread linked below. In the thread similar issue is discussed. You will find also a UI for ASP.NET Core sample application where the editor is set dynamically. 

- https://www.telerik.com/forums/can-editortemplatename-be-set-dynamically

As you will notice in the Forum thread, the approach in the UI for ASP.NET projects is the same as in the article you have linked. 

Please take a look at the sample project and let me know in case you have additional questions or if you need further assistance.

Regards,
Neli
Progress Telerik

Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or