Hi,
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.
Any Assistance would be helpful.
Thanks,
RK.
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)
{
((RadRibbonForm1)this.ParentForm).radDock1.AddDocument(documentTop);
}
Any Assistance would be helpful.
Thanks,
RK.