How to specify custom editor inline for a column?

2 posts, 0 answers
  1. Happy
    Happy avatar
    65 posts
    Member since:
    Aug 2008

    Posted 12 Dec 2012 Link to this post

    I want to display a custom dropdownlist for an editable column. I see raw query examples that set an editor property that calls some function but I couldn't figure out how to make this work with mvc. What other options do I have available that are inline within the same page as the grid?

    Another example is for a lookup control. I want to display a readonly textbox with a ... button that will launch another modal lookup dialog.

    I need a solution that is inline with the page and doesn't involve me customizing my business objects with uihints or adding partial pages just for a column editor.
  2. Daniel
    Admin
    Daniel avatar
    2226 posts

    Posted 14 Dec 2012 Link to this post

    Hi,

    To specify the name of the template from the view with the MVC Grid, you can use the column EditorTemplateName method e.g.

    columns.Bound(p => p.MyProperty).EditorTemplateName("MyTemplate");
    For the lookup, I can suggest to open a Window when the button is clicked. Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top