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

Grid in EditorTemplate

2 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rrawla
Top achievements
Rank 1
rrawla asked on 26 Nov 2011, 06:30 PM
Hi,
How can I achieve the following ?

I've a editable  Grid with client side template for example say Customer and following the Master Detail approach I can relate and show data of orders for each customer inline , but I want to acheive the same scenario Only the Orders Grid need to be in the Popup Editor Template

I short I want the Customer Grid with Edit mode as popup and when I go in edit mode  in popup I want to show the related orders in the grid

Anyhelp is appreciated.

Thanks 

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 28 Nov 2011, 12:41 PM
Hello Rrawla,

 You need to use a custom editor template where you can put the details grid. I believe that this code library will be of help - you could use it as a base and extend it further so it fits your requirements.


Regards,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Hugo
Top achievements
Rank 1
answered on 28 May 2012, 08:47 AM
I have the scenario where I have a grid with parent records only, e.g. Titles, displaying only titles information (without the 'DetailView' mechanism, i.e. without the 'plus' sign on each parent record). Below is the model:

Title
   Title Id
   WPR Title
   List<Restriction>

Restriction
   Comment
   Flag

On edit button click, I display in a custom template the information for the Title (Title) and its Restrictions (Title.Restrictions). My only problem is that when I bind (server side) my Restrictions grid, the property "Title.Restrictions" comes empty!...(And I am assuring that my initially bound collection of Titles comes with the corresponding children of Restrictions for each Title)  My question would be: Why that collection comes empty? Is that because is not being explicitly shown on the parent grid? Do I need to implement this functionality via the DetailView feature as discussed Here

I am attaching images.

Thank you!
Tags
General Discussions
Asked by
rrawla
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Hugo
Top achievements
Rank 1
Share this question
or