Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Resizing UltraListView inside PopupControlContainerTool
posted

I have created a UserControl containing only an UltraListView.  I have added it to my form, and associated it with a PopupControlContainerTool.  Before I show the popup I want to set the size of the control based on the items in the list view.  The list view is in "List" mode, with a single column and checkboxes displayed.  I want to find the width of the widest item in the list, and use that with some padding for the width of the entire control.

Any ideas?

  • 44743
    posted

    You can handle the BeforeToolDropdown event of the UltraToolbarsManager. When it is the PopupControlContainerTool which is about to drop down, set th eproper size on your UltraListView.