Hi,I have listview inside of UltraExpandableGroupBox.I want to make the control larger or smaller when listview item is added or removed.I found that UltraExpandableGroupBox has Panel inside it and has AutoSize Property.I set the AutoSize to true, and also make another property grow and sink.However, the UltraExpandableGroupBox size doesn't change at all,Is there any other options that I need to set ?How to achieve this ?
Thanks
Hello Ivan,
Haven't tried it yet,but my questions already answered.Thanks for your support
Hello Mario,
Did you have the chance to try out the solution that Mike suggested?
Please let us know if you need any further assistance.
Regards, Ivan Kitanov
Hi Mike,
I got it. It seems impossible to do that with listview.Will consider your solution or think another way.Thanks
Mario Saputra said:Is there anyway for ExpandableGroup to know the necessary height to follow listview size ?
Okay, so now the question is no longer even about the UltraExpandableGroupBox, you are asking how to autosize the ListView or UltraListView to it's contents. As far as I know, there is no way to do that. ListView generally shows a scrollbar so that the user can view the items by scrolling and I am not aware of any ListView control(s) that can size itself to content. Of course, if you only have 2 options (images or no images) then you could just size it manually and then hard-code those two numbers. But there might be other factors involved like scaling or high-def monitors, etc. So that might not work in all cases unless you have a fixed user base that are all running on company machines that are all the same or something.
Hi Ivan,
Thanks for your answer,but listview size doesn't change when I added new icon dynamically.ListView size seems fixed, because there is scrollbar on the listview,Can't figure out how to get the height size.