This is a migrated thread and some comments may be shown as answers.

ListBoxItem Parent Listbox

1 Answer 134 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rodenberg
Top achievements
Rank 1
Rodenberg asked on 07 May 2012, 07:16 AM
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


1 Answer, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 10 May 2012, 04:45 PM
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 >>

Tags
ListBox
Asked by
Rodenberg
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or