Get parent RadListBoxItem from child control inside item's template?

2 posts, 1 answers
  1. KN425000
    KN425000 avatar
    16 posts
    Member since:
    Aug 2010

    Posted 18 Jul 2011 Link to this post

    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    */

  2. Answer
    Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 21 Jul 2011 Link to this post

    Hi Kn425000,

    We have already responded to your support ticket, as well as on this forum thread here.

    Kind regards,
    Dimitar Terziev
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top