I want to create a custom control (C#) inherited from RadListControl so that my new control will have a click event for the list's items (not the control itself - since, undesirably, the scroll bar triggers the control's event).
Which control event can I override so I can subscribe to the item's double-click event? I expected an item_added or similar event but don't see one.
I can do this (but it is ugly and doesn't handle new items being added later):
Which control event can I override so I can subscribe to the item's double-click event? I expected an item_added or similar event but don't see one.
I can do this (but it is ugly and doesn't handle new items being added later):
foreach
(RadListDataItem item
in
this
.RadListControl1.Items) {
item.VisualItem.DoubleClick += Item_DoubleClick;
}
private
void
Item_DoubleClick(
object
sender, EventArgs e)
{
RadListDataItem item = ((RadListVisualItem)sender).Data;
MessageBox.Show(item.Text.ToString());
}