RadWindow.ResizeMode not thought out...

9 posts, 0 answers
  1. RoadWarrior
    RoadWarrior avatar
    45 posts
    Member since:
    Jan 2010

    Posted 27 Dec 2010 Link to this post

    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.
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 28 Dec 2010 Link to this post

    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
  3. DevCraft banner
  4. RoadWarrior
    RoadWarrior avatar
    45 posts
    Member since:
    Jan 2010

    Posted 28 Dec 2010 Link to this post

    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?
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Jan 2011 Link to this post

    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
  6. RIZAL
    RIZAL avatar
    11 posts
    Member since:
    Jun 2015

    Posted 06 Mar Link to this post

    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.

  7. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 08 Mar Link to this post

    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
  8. RIZAL
    RIZAL avatar
    11 posts
    Member since:
    Jun 2015

    Posted 08 Mar in reply to Yana Link to this post

    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.

     

  9. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 08 Mar Link to this post

    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
  10. RIZAL
    RIZAL avatar
    11 posts
    Member since:
    Jun 2015

    Posted 08 Mar in reply to Marin Bratanov Link to this post

    Hi,

    Thanks for your reply, it's really helpful.

    Sorry for the wrong forum.

Back to Top
DevCraft banner