RadCollapsiblePanel Button Element customization

3 posts, 0 answers
  1. Jeff
    Jeff avatar
    48 posts
    Member since:
    Apr 2012

    Posted 21 Mar 2014 Link to this post

    I'd love to use the RadCollapsiblePanel to provide drop down buttons in my application on certain menus, but my buttons currently are square. and I can't seem to modify the button shape in the panel without using the ControlSpy. Even then it seems odd that there is no "square" button shape to select and I have to make a custom shape for something so common.

    My main problem at this point, however, is that any time I set the button element AutoSize to false, the button vanishes at runtime. I attached an image of how it looks at design time. I am able to use a larger image and resize the button, change the background, border, etc. I can't figure out how to make it square and at runtime, the button is gone and nothing in that area responds to a click.

  2. Jeff
    Jeff avatar
    48 posts
    Member since:
    Apr 2012

    Posted 24 Mar 2014 Link to this post

    I forgot to mention that in the image, the square button is a normal button and the round button is the RadCollapsiblePanel button.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. George
    Admin
    George avatar
    500 posts

    Posted 26 Mar 2014 Link to this post

    Hello Jeff,

    Thank you for contacting us.

    I was able to add a RadButtonElement to the header of RadCollapsiblePanel and to set its Shape. In your case the image may be the one which is causing troubles. Since the RadCollapsiblePaneactually uses a LightVisualElement for its button, instead of RadButtonElement. You can try to use CollapsiblePanelButtonElement, which should result in the correct behavior.

    I am also attaching a sample project for your reference.

    Let me know if you have any other questions.

    Regards,
    George
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top