[Solved] how disabled a documentWindows in a Dock composent

1 Answer 15 Views
Dock
Laurent
Top achievements
Rank 1
Iron
Iron
Iron
Laurent asked on 14 Apr 2026, 01:33 PM

Hello,

I am using the Dock component.

I have added 3 “documentWindows”.

In each “documentWindows”:

- 1 grid

- buttons: save, cancel, create, edit and delete

- fields

I would like to disable the other “documentWindows” when I enter create, edit or delete mode.

And to re-enable them when I save or cancel.

E.g.: If I am in “documentWindows1” and click the “edit” button, then “documentWindows2 and 3” are disabled.

If I confirm or cancel, then “documentWindows2 and 3” are enabled.

Thank you for your feedback.

Translated with DeepL.com (free version)

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 15 Apr 2026, 12:02 PM

Hi, Laurent,

Upon your custom conditions, you can use the following aproach to disable other document windows while keeping only one window open:

 // if (some condition)
 {
     this.documentWindow1.TabStripItem.Enabled = false;
     this.documentWindow2.TabStripItem.Enabled = false;
 }

As a result, documentWindow2 and 3 appear disabled, while documentWindow1 is enabled:

You can also use DockState property and set it to DockState.Hidden. But this will hide the window entirely. However, I am suggesting this just for your information, in case it may helps. Feel free to enable/disable the document windows according to your custom conditions.

I hope this helps. Let me know if I can assist you further.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Laurent
Top achievements
Rank 1
Iron
Iron
Iron
commented on 16 Apr 2026, 11:59 AM

thank you
Tags
Dock
Asked by
Laurent
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or