How do you from Floating Window access the parent radDock object?

2 posts, 0 answers
  1. Robert Kozar
    Robert Kozar avatar
    3 posts
    Member since:
    Apr 2005

    Posted 08 Aug 2011 Link to this post


    I am trying to allow the ability from a FloatingWindow to open a DocumentWindow in the parent form RadDock object but its null.

    Here is how I am doing it as a Docked ToolWindow, but it changes to FloatingWindow when I undock it and the parentform of that is now null.

    string itemName = rows[0].GetProperty("Name").ToString();
    DocumentWindow documentTop = new DocumentWindow();
    documentTop.Text = itemName;
    documentTop.DocumentButtons = DocumentStripButtons.All;

    //dosnt want to add a document because I cannot find the Form that opened this.

    if (this.ParentForm is FloatingWindow)
        //todo: find a way to call the DockManager and add a new document.

    //this works only when the ToolWindow object is Docked.
    if (this.ParentForm is RadRibbonForm1)

    Any Assistance would be helpful.
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 11 Aug 2011 Link to this post

    Hello Robert,

    Thank you for writing.

    I am afraid that the design of your application is not clear to me. For this reason I kindly ask you to send me your project, so that I can investigate your case and provide you with adequate support.

    The straight-forward way to achieve this can be observed in the attached project. 

    I am looking forward to your reply and sample application.
    Kind regards,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top