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

Hide Close button on floating window

3 Answers 198 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Tung
Top achievements
Rank 1
Tung asked on 13 Mar 2017, 04:36 PM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 14 Mar 2017, 09:50 AM
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.
0
Tung
Top achievements
Rank 1
answered on 14 Mar 2017, 12:08 PM

Thanks, Dimitar!

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

0
Dimitar
Telerik team
answered on 15 Mar 2017, 09:06 AM
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.
Tags
Dock
Asked by
Tung
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Tung
Top achievements
Rank 1
Share this question
or