Hide Close button on floating window

4 posts, 1 answers
  1. Tung
    Tung avatar
    11 posts
    Member since:
    Jan 2017

    Posted 13 Mar Link to this post

    Hi

    Can you tell me how to hide the Close (X) button on a floating window?

    I can hide the minimize and maximize buttons but not the close button.

    As a workaround I tried to cancel the FloatingWindowClosing event with 'e:Cancel = true' but it stills closes.

    Thanks

    Tung

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 14 Mar Link to this post

    Hello Tung,

    Thank you for writing.

    You can use the ControlBox property for this:
    private void RadDock1_FloatingWindowCreated(object sender, Telerik.WinControls.UI.Docking.FloatingWindowEventArgs e)
    {
        var wnd = e.Window;
        wnd.ControlBox = false;
    }

    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.
  3. Tung
    Tung avatar
    11 posts
    Member since:
    Jan 2017

    Posted 14 Mar in reply to Dimitar Link to this post

    Thanks, Dimitar!

    I thought there'd be a property, I just didn't know which one after it's different to DocumentWindow and ToolWindow

  4. Dimitar
    Admin
    Dimitar avatar
    1877 posts

    Posted 15 Mar Link to this post

    Hello Tung,

    I want to mention that the FloatingWindow is actually a form and it inherits all form properties.

    Do not hesitate to contact us if you have other 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.
Back to Top