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

How to specify custom editor inline for a column?

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Happy
Top achievements
Rank 1
Happy asked on 13 Dec 2012, 03:01 AM
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.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Dec 2012, 06:08 PM
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!
Tags
Grid
Asked by
Happy
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or