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?

    Thanks,
    Michael Hewitt
    Precision Software Design, LLC

  2. Answer
    Jack
    Admin
    Jack avatar
    2335 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); 
        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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top