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

Can the X be removed?

22 Answers 241 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 19 Dec 2008, 10:10 PM
Greetings,

I am evaluating the Docking controls (beta) for inclusion in a silverlight application that requires the "Visual Studio like" panels.  Your demos look very good.  However we do not want to allow the users to be able to close the panels, only pin and un-pin them.  It isn't intuitive to me from the properties in the XAML if I can remove the X.  Maybe it can be removed through styling.

Also, I know the controls are only in beta now, but I'm looking for resources on how the style the controls.  Is there another control where the help for styling that control would apply to the docking controls?

thanks
...Scott

22 Answers, 1 is accepted

Sort by
0
Ben Hayat
Top achievements
Rank 2
answered on 21 Dec 2008, 01:37 AM
I'd would vote the ability to make the visibility of X "Visible" or "Collapsed"!

Thanks!
..Ben
0
Nikolay
Telerik team
answered on 23 Dec 2008, 08:36 AM
Hello there,

Thanks for your feedback.

Currently, this functionality is not available with the CTP edition of the Docking tool. We have the feature in our To-Do list for later implementation in some of the forthcoming editions of the control. We will be actually looking into including the feature right in the next Beta edition of the RadDocking control.

Once again, thanks for your feedback. It is always the best way to ensure our products keep getting better.

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
lkeel
Top achievements
Rank 1
answered on 30 Jan 2009, 02:47 PM
This functionality is crucial for my application.  We can not have the user closing the window.  Is there an estimated release for this ability?
0
Miroslav Nedyalkov
Telerik team
answered on 30 Jan 2009, 05:11 PM
Hello lkeel,

This feature will be available with our next release (at the end of February/beginning of March).

Regards,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben Hayat
Top achievements
Rank 2
answered on 30 Jan 2009, 06:47 PM
Hi Miroslav;

Just wanted to say Thanks for making this happen. The ability to block or allow closing the pane is very important to the type of app we are planning to build.

Great Customer Service!
0
Svetlana
Top achievements
Rank 1
answered on 02 Apr 2009, 06:13 PM
Hi,
as I understood the ability of show/ hide close button on Docking groups should work in the last (March) release. But I cannot find the option to do that. Could you please help me to find it out? How to tell the Group to not allow / allow close button?
The second queston is how to prevent the floating panels / groups within Docking? I don't want allow users to play with the groups and panes location. It's very critical for us.

Thanks,
Svetlana.
0
Miroslav
Telerik team
answered on 03 Apr 2009, 08:52 AM
Hi Svetlana,

Yes, the close button can be hidden.

In fact there are four properties on the RadPane that can disable most of the user interaction: CanDockInDocumentHost, CanFloat, CanUserClose, CanUserPin.

Unfortunately interaction cannot be completely disabled and the user will still be able to rearrange the panes.

As far as I understand you need to disable all drag/drop actions? If this is so, then maybe we can look for something into that direction.

Best wishes,
Miroslav
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Svetlana
Top achievements
Rank 1
answered on 05 Apr 2009, 05:20 AM
Thanks for your quick response.
I found CanUserClose, it's OK. But I still need the ability to prevent user drag & drop any panes at all, and even an option to remove the menu (a little rectangle), like you can remove Close button.
Also if you  CanFloat="False" for some pane you don't see the menu item "Floating", but you can drop the window so It will be floating, that I would like to disallow.  It's confusing, not consistant, even a bug. Could you please tell me if it can be fixed soon?

Thank you very much.
Svetlana.
0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2009, 08:25 AM
Hello Svetlana,

This should be done for the SP1.

Regards,
Miroslav Nedyalkov
0
Svetlana
Top achievements
Rank 1
answered on 06 Apr 2009, 08:41 AM
Hello Miroslav,
thank you for your quick answer.
As I understood the 2 things (the option to remove the menu rectangle and drag panels ability) I asked about will be fixed in SP1.
It'll be great! When SP1 is planned to be released?


Thanks,
Svetlana.
0
Valentin.Stoychev
Telerik team
answered on 06 Apr 2009, 08:42 AM
Hello Svetlana,

We are planning to release the SP1 later this week. I hope this is soon enough for your schedule.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Svetlana
Top achievements
Rank 1
answered on 06 Apr 2009, 08:45 AM
GREAT!! Thank you!
0
James
Top achievements
Rank 1
answered on 05 May 2009, 10:13 AM
Just to add to this - if you set CanUserClose="False" and the user then drags the pane so that it's floating, they can then close the pane and it's gone. Is this by design? (My expectation was that setting CanUserClose to false would protect the pane from disappearing, while still allowing it to be dragged around etc.)
0
Miroslav Nedyalkov
Telerik team
answered on 05 May 2009, 02:17 PM
Hi James,

Yes, this is by design. The reason is that the user actually doesn't close the pane, but the window that contains the pane. The reason why we decided to not stop closing the window when one of the panes cannot be closed by the user, is because in this case we will not close all the other panes (they can be closed by the user) and this is not absolutely correct. We've added some events: PreviewWindowClose and WindowClose, that can help you control the windows and prevent closing such windows, that contain panes with CanUserClose property set to false, but our position is that this is a custom scenario and therefore we didn't implement it out of the box. This events are included in the latest build in the latest internal builds section under your client account and will be included in our next official release, too.
If you have further questions, don't hesitate to ask.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
James
Top achievements
Rank 1
answered on 05 May 2009, 10:14 PM
Ok - thanks for the info - I'll use the methods you described.
James.
0
Rory
Top achievements
Rank 1
answered on 11 Sep 2009, 11:27 PM
In response to dragging and then closing. When you close using the top Red X and then Save Layout the Window with the RadPanes will come back. Is this a bug or what? Am I missing a Serialization Tag somewhere. Thanks.
0
Miroslav Nedyalkov
Telerik team
answered on 15 Sep 2009, 01:02 PM
Hi Rory,

Unfortunately there are some issues with the save/load layout in the latest official build. You could download the latest internal build version - these problems won't appear there.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dave
Top achievements
Rank 1
answered on 28 Sep 2009, 08:26 PM
I can see the ability to stop users from closing the pane.  I also see that the 'x' goes away.   Is there a way to get rid of the triangle/context menues on a pane.

Thanks
0
Miroslav Nedyalkov
Telerik team
answered on 29 Sep 2009, 01:07 PM
Hello Dave,

What I could suggest you is either to remove the menu from the control template of the PaneHeader control or to clear the MenuCommands collection of the RadPane control. If you want to do this for all the panes in the Docking control you could do the following: 
foreach (var pane in MainDocking.Panes) 
    pane.MenuCommands.Clear(); 

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dave
Top achievements
Rank 1
answered on 29 Sep 2009, 03:07 PM
I wasn't able to bring my app into Expression Blend to change the template but the code snippet worked just fine.

Thanks
0
PBL
Top achievements
Rank 1
answered on 09 Oct 2009, 03:27 PM
This problem is quite serious.  It is counter-intuitive for a pane that has CanUserClose set to false to be able to be closed so easily.  The distinction between a pane and a window is lost on the user.  This could cause users to loose vital functionality.

Is there an easy way to get pack a pane that has been lost in this way?
0
Miroslav Nedyalkov
Telerik team
answered on 12 Oct 2009, 10:30 AM
Hello Peter,

In the latest version you cannot close a pane that has CanUserClose property set to false even by closing the ToolWindow. You could donwload the latest internal build version that fixes this problem. The fix will be included in the next official build, too.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
Scott
Top achievements
Rank 1
Answers by
Ben Hayat
Top achievements
Rank 2
Nikolay
Telerik team
lkeel
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Svetlana
Top achievements
Rank 1
Miroslav
Telerik team
Valentin.Stoychev
Telerik team
James
Top achievements
Rank 1
Rory
Top achievements
Rank 1
Dave
Top achievements
Rank 1
PBL
Top achievements
Rank 1
Share this question
or