Match InputPanel Size to UserControl Size

Posted by: mworland on 23 October 2018, 5:25 pm EST

    • Post Options:
    • Link

    Posted 23 October 2018, 5:25 pm EST - Updated 4 October 2022, 2:04 am EST

    I have a UserControl where I have placed an InputPanel.

    I am placing buttons in this IP, setting them all to break at None. I was going to add a resizer event to calculate how many buttons can fit in the current IP width. However, when I show the UC, I see the IP will automatically move buttons to the next row if there are too many. The problem Im having is, its adding buttons to an unknown width, then adds a scrollbar at the bottom for the rest of the buttons not shown.

    All images have the same number of buttons, but not all buttons are shown.

    Is there a setting Im missing to have it automatically move the buttons down, where all buttons are seen?

  • Posted 25 October 2018, 6:55 am EST

    Hello,

    Adding scrollbars when needed is a design behaviour: http://help.grapecity.com/componentone/NetHelp/c1inputpanel/webframe.html#keyfeatures.html

    This happens because enough space is not left on the form to accommodate the buttons. You can adjust the form size such that the buttons appear together or(and) set Break property to Group.

    Further, you can try setting the width of the Form to that of the UserControl.

    Sorry, but there would be no other direct way to accomplish the requirement.

    Best Regards,

    Esha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels