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

[Solved] Hierarchical view (sort of)

2 Answers 63 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.
FinallyInSeattle
Top achievements
Rank 1
FinallyInSeattle asked on 29 Sep 2011, 12:51 AM
I have a scenario where I need to have an editable grid where I allow for the display/edit of "primary" properties of a class.  Primary meaning that they're always entered and should always be visible to the user.  I also have "secondary" properties in that same class that I want available for editing, but not always displayed as they're optional and won't be edited that often. 

I tinkered around with the Hierarchical examples as that visual approach would work for us - have the user click on the "+" to open up a template with the secondary fields and click again to collapse it.  I've tried a "DetailView" and the "expand button" doesn't work (server version).

Can someone assist?

Thanks very much in advance!

Notes regarding sample: The grid to look at is in Views/Order/ProductList.cshtml.  I've put the "ScriptRegistrar" in Views/Order/Index because it was the ONLY way that I could get the CSS styles to load.  I'd prefer not to leave it there, but it's tied to another issue: http://www.telerik.com/community/forums/aspnet-mvc/grid/css-files-not-loading.aspx.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 29 Sep 2011, 03:32 PM
Hi Lori,

I have looked at the project you have provided and found that the expanding of the detail view does not work due to incorrect script references. Please find attached a modified version of the sample which should address this.

All the best,
Rosen
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
FinallyInSeattle
Top achievements
Rank 1
answered on 29 Sep 2011, 08:01 PM
That "@(" versus "@{" got me in both places :-). 

Thanks for your help!
Tags
Grid
Asked by
FinallyInSeattle
Top achievements
Rank 1
Answers by
Rosen
Telerik team
FinallyInSeattle
Top achievements
Rank 1
Share this question
or