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

    Hello,

    Since your new  release of Silverlight Controls RadControls_for_Silverlight4_2012_1_0430_DEV_hotfix.zip 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 ...

    thx 

    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
    Admin
    George avatar
    1332 posts

    Posted 10 May 2012 Link to this post

    Hi,

    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,
    George
    the Telerik team

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

  3. DevCraft banner
Back to Top