I have a grid and I've dragged an UltraGridFilterUIProvider control onto my form to get the enhanced filtering capabilities. When I click on the icon to show the filter my data is there but the control is too narrow and much of the content is clipped. I have to manually resize the filter window each time. I would like to set a default width via code but can't seem to find the right approach. I've tried the following based on a couple of posts here:
private void collectionGrid_BeforeRowFilterDropDown(object sender, BeforeRowFilterDropDownEventArgs e) { e.ValueList.DropDownListWidth = 400; }
Even if I can't do this in code I would like, at the very least, for the filter window to retain its size on subsequent uses once someone manually changes it.
I forgot to mention I'm using version 15.1.20151.1000
Hello Larry,
Thank you for posting.
By using BeforeRowFilterDropDown event you would be able to set the dropdown width if you are not showing FilterDropDown by FilterUIProvider and it works fine but in case of FilterUIProvider I dint find any public property exposed by the grid .
Although for the long string content inside the , you would still have a horizontal scrollbar and tooltips to show the complete string.
The FilterDropDown shown by the FilterUIProvider is a PopupMenuTool provided by UltraToolbarsManager. So it’s autosizing it width based on the contents of the Tools within it, but that doesn’t include the tree that shows the ValueListItems.
I can’t seem to figure out how this tool’s dropdown has been made resizable or how to set the size of the dropdown on the tool once I get it. So I will discuss this behavior with the development team and if I still can’t find it I would create a new feature request to implement it.
Sincerely,Divya JainAssociate Software Developer