Say I have a RadListBox, and inside the ItemTemplate for each item, I have two RadComboBox controls, a RadTextBox control, and a RadButton control. I capture the button click in the RadButton's OnClientClicked event handler.
Inside the OnClientClicked event handler, I want to get a reference to the parent list item, so that I can I can delete that item.
For example:
function Button_OnClientClicked(button)
{
var listBox = $find('MyListBox.ClientID');
var itemContainingTheButtonThatWasClicked = /* this is what I need to know */
listBox.get_items().remove(itemContainingTheButtonThatWasClicked);
}
Thanks