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

Nest a RadGridView within a RadElement hierarchy

1 Answer 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 27 Mar 2009, 03:36 PM
Hello -

I'm creating a RadElement hierarchy composed of nested panels & various elements, and I'd like to insert a RadGridView under one of the nested StackLayoutPanels.  Can you tell me how to do this?

Thanks,
Michael Hewitt
Precision Software Design, LLC

1 Answer, 1 is accepted

Sort by
0
Accepted
Jack
Telerik team
answered on 30 Mar 2009, 12:11 PM
Hi Michael,

Currently the GridElement inside RadGridView is tied to its control and it cannot be used separately. We will consider removing this link in one of our future versions. However, you can place RadGridView inside a RadHostItem and use the host item as element of the hierarchy. Here is a sample:

protected override void CreateChildElements() 
    RadGridView grid = new RadGridView(); 
    RadHostItem item = new RadHostItem(grid); 
    this.Children.Add(item);             
 

I will be glad to help if you need further assistance.

Regards,
Jack
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Michael
Top achievements
Rank 2
Answers by
Jack
Telerik team
Share this question
or