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

detailed template

5 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Giblin
Top achievements
Rank 1
John Giblin asked on 02 May 2008, 05:00 PM
I tried using the detailed template ( <NestedViewTemplate>), in the Rad Grid.  When I click on the down arrow, I loose the entire grid altogether.

it is very simple, i just have this
       <NestedViewTemplate>
            Hello Test
        </NestedViewTemplate>

5 Answers, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 04 May 2008, 01:15 PM
John, do you bind the grid using data source controls as shown in the demo for the detail template? I suppose that the alternative approach for binding from the code behind is to to catch the NeedDataSource/DetailTableDataBind events as shown in this online example:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/DetailTableDataBind/DefaultCS.aspx

Thus the main table should remain intact when having common sample nested view template.

Nikita


0
John Giblin
Top achievements
Rank 1
answered on 18 Dec 2008, 09:34 PM
I think I had the this tag confused.  I thought it would give me a detail page instead of a nest datagrids.
0
John Giblin
Top achievements
Rank 1
answered on 18 Dec 2008, 10:52 PM
Actually.  I just added <MasterTableView  
HierarchyDefaultExpanded="true">

and It is doing what I wanted.  Excpet when I click on the close and expand buttons. When I click on that, the grid disappears.  Any clue to why that is happening
0
Yavor
Telerik team
answered on 19 Dec 2008, 07:33 AM
Hi John,

Based on this information, I suspect that there is a problem with the way the control is databound.
If the issue persists, you can open a formal support ticket, and send us a small project, demonstrating you approach, and the erroneous behavior, for additional review.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John Giblin
Top achievements
Rank 1
answered on 19 Dec 2008, 04:52 PM
I got it to work. I had a RadGrid1.DataBind(); in the RadGrid1_ItemCommand method

thanks for your response
Tags
Grid
Asked by
John Giblin
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
John Giblin
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or