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

Adding a RadGrid in a RadTreeViewItem

5 Answers 92 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
prakash
Top achievements
Rank 1
prakash asked on 05 Jan 2012, 06:25 PM
Hi Everyone,

I need to show a radgrid inside a radtreeviewitem. could you please direct me in achieving this task. I don't want to use RadTreeListView,  using RadTreeView I need to do that.

Thanks in advances
Prakash.

5 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 10 Jan 2012, 02:30 PM
Hello prakash ,

 I prepared a solution for you which demonstrates how you can use a RadGridView inside a RadTreeViewItem's Header. Please let us know if this could fit in your scenario or not.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
prakash
Top achievements
Rank 1
answered on 13 Jan 2012, 02:26 PM
Hi Petar Mladenov,

Thanks for your response unfortunately It doesn't solve my requirement.
My Requirement: Tree view shows list of employees and on selecting each employee node I need to show the employee details in a grid. For example purpose I've specified using Employee details. Could you please provide the solution at the earliest.

Thanks,
Prakash.
0
Petar Mladenov
Telerik team
answered on 16 Jan 2012, 04:31 PM
Hi prakash ,

You can place the GridView as a RadTreeViewItem which is child of the selected item like so:
<telerik:RadTreeView x:Name="tree"  Background="AliceBlue" IsExpandOnSingleClickEnabled="True">
          <telerik:RadTreeViewItem Header="Employee A">
                  <Grid>
                      <Grid.ColumnDefinitions>
                          <ColumnDefinition />
                          <ColumnDefinition />
                      </Grid.ColumnDefinitions>
                      <TextBlock Text=" Grid Alpha " FontWeight="Bold" FontSize="14" VerticalAlignment="Center" />
                      <telerik:RadGridView Grid.Column="1" x:Name="gridView" Height="120" HorizontalAlignment="Stretch" Width="500" />
                  </Grid>
              </telerik:RadTreeViewItem>
      </telerik:RadTreeView>
Please give it a try and let us know if this satisfies you.
 
All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sri
Top achievements
Rank 1
answered on 18 Dec 2012, 04:23 AM
Hi,

I added radgridview inside treeview as mentioned below. But the radgrid view is adding additional column at the end.
Could you please suggest.

Thank,
Sri
0
Tina Stancheva
Telerik team
answered on 20 Dec 2012, 02:20 PM
Hello Sri,

Please take a look at this article and let us know if you have more questions.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
prakash
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
prakash
Top achievements
Rank 1
Sri
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or