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

[Solved] Hierarchy and EditMode

3 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob Heckart
Top achievements
Rank 1
Rob Heckart asked on 14 May 2008, 08:17 PM
Hi, I have a 3-tier grid that displays the following info:

Areas
    Attributes
        AttributeDetails

I am databinding the grid from codebehind using the NeedDataSource and DetailTableDataBind events. Once these events have fired, I need a way to change all of the attributes level items so that their edit mode is true. I would also like to have the entire hierarchy expanded by default.

Could someone provide a technique for doing this?

Thanks much!

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 May 2008, 06:09 AM
Hi Rob,

Try setting  HierarchyDefaultExpanded="true"  in the aspx to achieve the desired scenario.

ASPX:
<MasterTableView DataKeyNames="ProductID"  CommandItemDisplay="Top"  HierarchyDefaultExpanded="true"      EditMode="InPlace"    DataSourceID="SqlDataSource1"


Thanks
Shinu.



0
Rob Heckart
Top achievements
Rank 1
answered on 15 May 2008, 12:39 PM
The HierarchyDefaultExpanded worked great - thanks! Now I just need some help with the edit modes and I'm in good shape!

Rob
0
Accepted
Yavor
Telerik team
answered on 15 May 2008, 01:06 PM
Hi Rob,

To see more information on the other functionality that you mentioned, please refer to the following article, as well as this one. I hope this helps.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Rob Heckart
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rob Heckart
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or