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

[Solved] Can I include a tab control in Popup Edit Mode?

5 Answers 184 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.
Rhek
Top achievements
Rank 1
Rhek asked on 01 Aug 2011, 02:38 AM
I have a product grid that I am using GridEditMode.Popup. We need, would like, to be able to customize the edit form in the popup. One requirement is to add a tab control, since the form would be vertically huge. I also have some values that I want to display in the popup edit form, but have those readonly. i.e. product Id.

If that is not possible, can I load a view into the Popup to edit the data? 

I am using Razor and VB.

Thanks!


5 Answers, 1 is accepted

Sort by
0
Muhamad Tassadaque Zia
Top achievements
Rank 1
answered on 01 Aug 2011, 09:33 AM
You need to add custom editor template you can follow this  post to do that
0
Venkatesh
Top achievements
Rank 1
answered on 02 Aug 2011, 04:57 AM
Hi Muhamad Tassadaque Zia,

        How  do we need to merge the custom template with Telerik editable  grid ?
Any sample code ?

Thanks in Advance..

regards,
Venkatesh K
0
Rhek
Top achievements
Rank 1
answered on 02 Aug 2011, 05:32 AM
At this point I was hoping you had an example that you could point me to or let me know if it was not possible.

What I was wanting to do was click the "edit" button in the grid and popup a custom edit form, not your default edit form, which works well on all my pages but one. The custom edit form would then contain a tab control for the user to make their edits. Without the tab structure my edit form would be half-a-mile long.

I was trying to figure out how to create the custom edit form. I was not sure if the form could be a view or if I created a template when defining the grid. If it could be a view, how do I insert the view into your popup and then how do I close your popup and update the grid.

Thanks for the reply and checking up on me.
Rhek

PS: I am using Razor and Visual Basic since we are a VB.Net shop, but most examples are C#. If you have a Visual Basic example that would be really great, but if not a C# example is better than no example!



0
Venkatesh
Top achievements
Rank 1
answered on 02 Aug 2011, 08:39 AM
0
Rhek
Top achievements
Rank 1
answered on 02 Aug 2011, 11:11 AM
Thanks for the link to the example. Would you have an example using an editor template that is not an ascx file? I am using Razor and the editor templates for Razor are cshtml files.  I have been trying to convert the code, but have a few issues mainly with the declaration line.
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CustomPopUpForm.Models.Customer>" %>

Since it is not a user control, the "<%@ Control" is not valid. Any thoughts or an Razor example?

Thanks for the help.
Rhek

Tags
Grid
Asked by
Rhek
Top achievements
Rank 1
Answers by
Muhamad Tassadaque Zia
Top achievements
Rank 1
Venkatesh
Top achievements
Rank 1
Rhek
Top achievements
Rank 1
Share this question
or