Nest a RadGridView within a RadElement hierarchy

2 posts, 1 answers
  1. Michael
    Michael avatar
    33 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2009 Link to this post

    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?

    Michael Hewitt
    Precision Software Design, LLC

  2. Answer
    Jack avatar
    2333 posts

    Posted 30 Mar 2009 Link to this post

    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); 

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

    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top