Dynamic Editor Template for each row in Grid

2 posts, 0 answers
  1. Nick
    Nick avatar
    1 posts
    Member since:
    Oct 2015

    Posted 23 Jul 2020 Link to this post

    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.  

     

  2. Neli
    Admin
    Neli avatar
    397 posts

    Posted 28 Jul 2020 Link to this post

    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

Back to Top