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

Q3 Beta 2 and RowLoadedEvent

2 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 20 Oct 2009, 10:16 AM
Hello

This morning, I've updated my application from Q3 beta 1 to Q3 beta 2.

I used the new API to fix a few bugs in my code since the record support isn't there any more.

But then, I noticed that even if my application runs fine, some behaviours have disappear.

What I mean is that I was attaching some cell events in a RowLoadedEvent methods, by looping the cells in e.Row

But now, e.Row.Cells.Count always returns 0, so none of my events is attached.
The gridview has manual column adding, manual binding and then I set the itemsource from WCF

Any idea how I can get this e.Row.Cells back ?

2 Answers, 1 is accepted

Sort by
0
Marjeta Segrec
Top achievements
Rank 1
answered on 21 Oct 2009, 07:02 PM

Hello.

I have the same situation and new problem with Q3 Beta 2 on RowLoadedEvent - cells.count = 0 ???
Example :

Protected Overridable Sub OnRadGridRowLoaded(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridView.RowLoadedEventArgs)  
        If TypeOf e.Row Is GridViewRow AndAlso Not TypeOf e.Row Is GridViewNewRow Then  
            Dim cells = e.Row.ChildrenOfType(Of GridViewCell)().Where(Function(n) n.Column.IsVisible)  
            '  
            For Each c In cells  
                If c.ActualWidth < c.GetValueTextWidth Then  
                    Dim bnd As New Binding("Content")  
                    bnd.Source = c  
                    c.SetBinding(ToolTipService.ToolTipProperty, bnd)  
                End If ' c.ActualWidth < c.ValueTextWidth 
            Next ' c In cells  
 
        End If ' TypeOf e.Row Is GridViewRow AndAlso Not TypeOf e.Row Is GridViewNewRow  
 
    End Sub ' OnRadGridRowLoaded(ByVal sender As Object, ByVal e ...) 

Thanks for the answer or solution.
Regards

0
Vlad
Telerik team
answered on 22 Oct 2009, 09:09 AM
Hi,

Unfortunately you are right - we will fix this for the official release. We will do our best also to upload latest build of our second beta this Friday.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Marjeta Segrec
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or