keep Keep window expanded on show dialog (popup)

3 posts, 1 answers
  1. Raoul
    Raoul avatar
    36 posts
    Member since:
    Apr 2012

    Posted 03 Mar 2017 Link to this post

    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. Answer
    Dimitar avatar
    2983 posts

    Posted 07 Mar 2017 Link to this post

    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.

    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.
  3. Raoul
    Raoul avatar
    36 posts
    Member since:
    Apr 2012

    Posted 07 Mar 2017 Link to this post

    Thank you Dimitar.

    That did the trick.

Back to Top