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

Grid

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Appu
Top achievements
Rank 1
Appu asked on 27 Feb 2009, 10:51 AM
Sir,

In my project i have a one grid in telerik control.This is a Hirarchical grid.But in this grid i click plus button then first record displayed but i click second record then not closed first record.

I need for this code.

Regards,
Apeksha

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 27 Feb 2009, 11:01 AM
Hello Apeksha,

I suggest you take a look at the following link:
Single expand in hierarchical grid

Let us know if you have more questions.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Appu
Top achievements
Rank 1
answered on 27 Feb 2009, 11:28 AM
Thanks for reply...

But i want without database for this code using datatable.

Regards,

Apeksha.
0
Daniel
Telerik team
answered on 02 Mar 2009, 05:12 PM
Hello Apeksha,

Have a look at the following snippet:
private void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    if (e.CommandName == RadGrid.ExpandCollapseCommandName) 
    { 
        foreach (GridItem item in e.Item.OwnerTableView.Items) 
            if (item.Expanded && item != e.Item) 
                item.Expanded = false
    } 

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Appu
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Appu
Top achievements
Rank 1
Share this question
or