Open custom cshtml file on grid edit event

4 posts, 1 answers
  1. Vidhin
    Vidhin avatar
    6 posts
    Member since:
    Nov 2012

    Posted 07 Mar 2013 Link to this post

    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.
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2284 posts

    Posted 08 Mar 2013 Link to this post

    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!
  3. Vidhin
    Vidhin avatar
    6 posts
    Member since:
    Nov 2012

    Posted 13 Mar 2013 Link to this post

    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
  4. Vidhin
    Vidhin avatar
    6 posts
    Member since:
    Nov 2012

    Posted 14 Mar 2013 Link to this post

    Hi,

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

    Thanks for the help.
Back to Top