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

[Solved] ChildrenOfType missing...

2 Answers 193 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sascha
Top achievements
Rank 1
Sascha asked on 30 Aug 2010, 02:51 PM
Hello,

I used the Version 714 of the Telerik Silverlight RadControls. With this Version the code below worked fine. Now I installed this version 2010.2.812.1040 and now the function ChildrenOfType is missing. Are there any changes about this?

Can you tell me an alternative? The issue of the code is to get a reference to the vertical scrollbar and to change its visibility.

Kind regards,
Sascha Abraham



Private Sub CISDatagrid_SizeChanged(ByVal sender As Object, ByVal e As System.Windows.SizeChangedEventArgs) Handles Me.SizeChanged
           Dim oGrid As RadGridView
           oGrid = sender
           Dim sw = oGrid.ChildrenOfType(Of GridViewScrollViewer)().FirstOrDefault()
           If sw IsNot Nothing Then
               Dim vsb = sw.ChildrenOfType(Of ScrollBar)().Where(Function(s) s.Orientation = Orientation.Vertical).FirstOrDefault()
               If vsb IsNot Nothing Then
                   ScrollViewer.SetVerticalScrollBarVisibility(oGrid, ScrollBarVisibility.Visible)
                   m_oScrollBar = vsb
               End If
           End If
 
       End Sub

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 30 Aug 2010, 03:00 PM
Hi Sascha,

ChildrenOfType method is still there. Are you referencing the Telerik.Windows.Controls namespace which this method resides?


Kind regards,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sascha
Top achievements
Rank 1
answered on 30 Aug 2010, 03:05 PM
Thanks,

now it works again. During the installation of the new version I've forgotten to reinsert the reference.

Sascha
Tags
GridView
Asked by
Sascha
Top achievements
Rank 1
Answers by
Milan
Telerik team
Sascha
Top achievements
Rank 1
Share this question
or