ListBoxItem Parent Listbox

2 posts, 1 answers
  1. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 07 May 2012 Link to this post


    Since your new  release of Silverlight Controls i've missing the property ParentSelector on RadListBoxItem.

    I've tried to access the listbox from listboxitem. but parentselector is not longer aviable ...

    please help me ...


    Private Sub RadContextMenu_ItemClick(sender As System.Object, e As Telerik.Windows.RadRoutedEventArgs)
            Dim m As RadContextMenu = DirectCast(sender, RadContextMenu)
            Dim i As RadListBoxItem = m.GetClickedElement(Of RadListBoxItem)()
            If i IsNot Nothing Then
                Dim o As ObservableCollection(Of MapService.Service) = i.ParentSelector.ItemsSource
    End sub

  2. Answer
    George avatar
    1332 posts

    Posted 10 May 2012 Link to this post


    We made some changes to the RadListBox control (major refactoring) and we removed the ParentSelector property. Most probably we will add it again for the official version of the control - Q2 release. Until then you could find the parent selector using the i.ParentOfType<RadListBox>() method. 

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top