I would like to set the height of the listbox to show 5 rows of data. The rows are simple text entries using RadListBoxItem. In order to set the height, it seems like I would have to calculate the height of one item and multiple that by the number of rows that I want to show. Then, set the height of the listbox to this value.
The "height" property for the RadListItem is blank before adding to a listbox, after adding to a listbox, and after adding to an update panel on the page. I kind of figured this was the case given that the style sheet may cause the size to change.
So, how should I set the height of a listbox assuming I want to show 5 items at a time? Do I calculate it on the server side using best guess at the row size? How well does that work for cross browser implementations? Do I calculate it on the client side in javascript?
What would be the best approach to this?
Thanks
Michael
The "height" property for the RadListItem is blank before adding to a listbox, after adding to a listbox, and after adding to an update panel on the page. I kind of figured this was the case given that the style sheet may cause the size to change.
So, how should I set the height of a listbox assuming I want to show 5 items at a time? Do I calculate it on the server side using best guess at the row size? How well does that work for cross browser implementations? Do I calculate it on the client side in javascript?
What would be the best approach to this?
Thanks
Michael