Hi Alex Peachey,
It is possible to add controls inside listbox items, but this works only with Q2 2008 SP1.
I have attached a sample project for your reference. Here are some notes that are not obvious from the example:
- The list box must be wider than the widest hosted control plus the width of the vertical scrollbar.
- The height of the listbox must follow the equation:
height = k * lbiHeight + BorderHeight, where:
k - integer number
lbiHeight - height of a listbox item
BorderHeight - border height
The first limitation avoids overlapping of the vertical scrollbar by the hosted controls. The second limitation is necessary to avoid overlapping of the listbox border by the hosted controls. Note that by default the height of the listbox item is equal to the height of the hosted control plus the height of the border of the item (usually 2 pixels).
In the given example the height of the hosted control (LBItemControl) is 54, the height of a listbox item with that control inside it is 56 and the height of the RadListBox is 170:
170 = 3 * 56 + 2
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.