How do you adjust the height of an UltraListViewItem when its parent UltraListView control is in Details view? (other than by adjusting Font sizes).
Tonic2012,
Unfortunately there is no way to adjust the size of an UltraListViewItem when the UltraListView's View is set to Details. If you'd like, you can submit a feature request for this functionality here.
~Kim~
How can you get the height of the list view items?
I am using a listview as a dropdown check box in an ultra combo editor that is itself embeded as the editor of a column in a grid...
I would like to set the height of the listview based on the aggregated height of the UI elements in its items collection.
Snagging a reference of the item added in Items.Add yields a null reference to the UIElement property...
I naturally assumed that the UIElement of the item would give me what I wanted and I would simply aggregate the height values...
Not So
Carson
Hello Andez,
You could try the 'ItemSizeResolved.Height' property for this:
ultraListView1.Height = ultraListView1.ItemSizeResolved.Height * (ultraListView1.Items.Count + 1);
Please feel free to let me know if I misunderstood you or if you have any other questions.
Carson,
I have the same issue as you I think. I'm on Infragisticcs 2012.1 now, but looks like the issue has still not been addressed.
I am using DropDownEditorButton to display an UltraListView in a UserControl. I wanted to restrict the list up to 5 items. The list syle is set to List. I wanted to mimic the functionality of the Search bar in Windows Explorer in Windows 7.
My idea was to set the height of the form based on the list item height.
Dim newHeight As Integer = UltraListView1.Items(0).UIElement.Rect.Height * (UltraListView1.Items.Count + 1)
But the UIElement is null.
Come on Infragistics, give me some ideas to work with here please?
Thanks,
Andez
I just discovered that if I query the UIElement of the item in the "Editor Before Drop Down" when I am constructing the listview items collection the element is null....
However...the element is ! null in the close up event of the editor button drop down...cycling the items yields values...ie not null
I suppose this makes sense seeing as before the drop down is displayed...the actual element is not created...
Unfortunately the ultra combo version I have does not contain an After Editor Button Drop Down...where I could set the height of my list view
Seems the only way to do this is catch or step into the program flow after the before drop down has executed...and returned control to the main app gui thread...
Thats lame and kludgey but I suppose it would work...
Ugh