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

RadWindow.ResizeMode not thought out...

8 Answers 123 Views
Window
This is a migrated thread and some comments may be shown as answers.
RoadWarrior
Top achievements
Rank 1
RoadWarrior asked on 27 Dec 2010, 03:59 PM
The RadWindow.ResizeMode is an enumeration which contains (CanMinimize | CanResize | NoResize).  The problem with overloading these UI aspects into a singular mutually exclusive property is that CanMinimize and CanResize are actually independent aspects of a dialog window.  At the moment I am faced with the scenario of displaying a window which CanResize == true && CanMinimize == false.  This simple configuration is impossible via the currently designed ResizeMode property.

I do understand that I can just go into the template and hack out the minimize button, but I'd rather Telerik fix the problem by creating a new and separate property for minimization (e.g. bool CanMinimize).  The problem with going down the hacking route is that the maintenance is multiplied when supporting multiple themes.

8 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 28 Dec 2010, 01:55 PM
Hello RoadWarrior,

We agree that this property doesn't cover all cases and we need to change it. However there is another way to remove the maximize and minimize buttons without changing the control template. This buttons are using commands so setting to them CanExecute=false remove the buttons.

Check the attached project. Hope it will help achieving your scenario.

Don't hesitate to contact us if you have other questions.

Regards,
Boyan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
RoadWarrior
Top achievements
Rank 1
answered on 28 Dec 2010, 08:48 PM
Thanks for the reply.  I am aware of the CanExecute, but I actually need the fine grained ability of collapsing ONLY the Minimize button vs. All buttons.  Hopefully, this refactoring can be done in the next Q release?
0
Boyan
Telerik team
answered on 03 Jan 2011, 10:37 AM
Hello RoadWarrior,

You are right that it will be most user friendly with separate properties for removing the buttons. We will do our best to provide such properties for Q1. We have this request in our PITS system. You can vote for it and follow the progress here: http://www.telerik.com/support/pits.aspx#/public/silverlight/2276.

Don't hesitate to contact us if you have other questions.


Greetings,
Boyan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
RIZAL
Top achievements
Rank 1
answered on 07 Mar 2016, 03:54 AM

Hi,

In your online tutorial, it's mentioned that to hide the max & min button in RadWindow, we need to use the ResizeMode property.

The problem is the ResizeMode is not an option in the RadWindow.

I'm using v2016.1.225.40 version.

0
Yana
Telerik team
answered on 08 Mar 2016, 09:09 AM
Hello Rizal,

Could you please give us more details on the used scenario, why ResizeMode is not an option in your case?

The other approach (except ResizeMode) to hide Minimize and Maximize buttons is to edit the template of RadWindow, to locate the Button controls inside it and to change their Visibility to Collapsed. You could check the Editing Control Templates topic for more details on extracting the template.

Regards,
Yana
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
RIZAL
Top achievements
Rank 1
answered on 08 Mar 2016, 02:43 PM

Hi,

I knew that there are 2 ways to hide the minimize and maximize button and I prefer to use ResizeMode because it is easier and faster.

Even there is another way to do it, I still want to know why ResizeMode option not appear in my coding?

I attached 3 images from code-behind, property window and aspx window.

 

0
Marin Bratanov
Telerik team
answered on 08 Mar 2016, 03:19 PM
Hello Rizal,

Judging from the screenshots, it seems you are using the RadWindow for ASP.NET AJAX while this forum and thread are about the RadWindow for Silverlight control. I would suggest posting in the most relevant forum section to ensure people familiar with the technology you are using see your posts. Here is the RadWindow for ASP.NET AJAX forum: http://www.telerik.com/forums/aspnet-ajax/window.

To get back to your question - to hide the Minimize and Maximize buttons of the RadWindow for ASP.NET AJAX, you need to define the Behaviors collection according to your needs. You can see this in action in the following demo: http://demos.telerik.com/aspnet-ajax/window/examples/behaviors/defaultcs.aspx. You can see how to set them in the code-behind by using the bitwise OR operator (|= to add &= to remove). You can see another example in the documentation: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/getting-started/user-interaction-with-the-window.

You can easily to this in the markup by using coma-separated values, e.g.: Behaviors="Resize, Move, Close, Reload, Pin".


Regards,
Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
RIZAL
Top achievements
Rank 1
answered on 09 Mar 2016, 01:39 AM

Hi,

Thanks for your reply, it's really helpful.

Sorry for the wrong forum.

Tags
Window
Asked by
RoadWarrior
Top achievements
Rank 1
Answers by
Boyan
Telerik team
RoadWarrior
Top achievements
Rank 1
RIZAL
Top achievements
Rank 1
Yana
Telerik team
Marin Bratanov
Telerik team
Share this question
or