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

Different templates for pop-up edit and pop-up insert?

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Keith
Top achievements
Rank 2
Keith asked on 08 May 2013, 12:08 AM
Is there a way to do this?  i.e.:  When I click the Toolbar Insert I would like to popup CreateProcurement
.ascx and when I click Edit in a row on the grid I'd like to popup EditProcurement.ascx.  

Also, it appears that these popups are bound on the initial page load of the grid page itself - which means it is preloading a lot of info (dropdowns, etc) that may not be correct when I finally decide to edit or insert.

Lastly, where should I put the JS for the specific edit/insert popup page?  The "$(document).ready(function () {...}); runs on the main page load and not on the popup show...

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 10 May 2013, 12:22 PM
Hello Keith,

The Grid does not support different templates for edit and create.

As a work-around you can use the Edit event of the grid.

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#OnEdit


Kind Regards,
Petur Subev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Keith
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Share this question
or