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

keep Keep window expanded on show dialog (popup)

2 Answers 53 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Raoul
Top achievements
Rank 1
Raoul asked on 03 Mar 2017, 01:33 PM

I have a requirement which uses a popup launched from a grid which resides in a tool window. Default state of the tool window is auto hide.
Now, when the tool window expands and the grid is shown, the end user can click a grid command button which launches a lookup dialog. The dialog returns the selected value with an event which is handled by the eventhandler from the tool window grid.

Here's the problem: when the dialog is shown, the tool window closes. I want the window to remain expanded while the dialog is shown.
Is there a way to keep it expanded _without_ changing the tool window state (e.g. to docked)?

Any thoughts on this?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 07 Mar 2017, 11:59 AM
Hi Raoul,

Thank you for writing.

You can use the AutoHideWindowHiding event to cancel the hiding operation:
private void RadDock1_AutoHideWindowHiding(object sender, Telerik.WinControls.UI.Docking.DockWindowCancelEventArgs e)
{
    e.Cancel = true;
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Raoul
Top achievements
Rank 1
answered on 07 Mar 2017, 03:59 PM

Thank you Dimitar.

That did the trick.

Tags
Dock
Asked by
Raoul
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Raoul
Top achievements
Rank 1
Share this question
or