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

Open custom cshtml file on grid edit event

3 Answers 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vidhin
Top achievements
Rank 1
Vidhin asked on 07 Mar 2013, 10:09 AM
Hi,

I am new to kendo ui mvc. I have one issue. I want to customize the whole edit template in pop up.

Is it possible to open a whole cshtml view in grid edit popup? like we do to open user control (.ascx) in popup.

I want this because I want multi-column edit form with 6 or more data-bound drop-down boxes.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 08 Mar 2013, 02:07 PM
Hello Vidhin,

Yes it is possible to achieve this. Please take a look at this Code Library, which demonstrates how to implement a Custom Pop up Editor.
 

Greetings,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vidhin
Top achievements
Rank 1
answered on 13 Mar 2013, 12:22 PM
Thanks Dimiter Madjarov,

your answer did great help and saved my so much time. That really helped me to achieve my needs.

I have another issue that I am sure you can help me with. I have 8 dropdown on that editor template.
Now when I submit my grid for update the values in model from the dropdown are always null.
Is there any way I can manually set the values in model for each dropdown's change event by using Html.Hiddenfor or anything else? Or any other way you can suggest.

Thanks
0
Vidhin
Top achievements
Rank 1
answered on 14 Mar 2013, 01:34 PM
Hi,

I found the solution and that was simple to use foreign key column instead of Htm.DropDownFor

Thanks for the help.
Tags
Grid
Asked by
Vidhin
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Vidhin
Top achievements
Rank 1
Share this question
or