Q3 Beta 2 and RowLoadedEvent

3 posts, 0 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 20 Oct 2009 Link to this post


    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. Marjeta Segrec
    Marjeta Segrec avatar
    18 posts
    Member since:
    May 2006

    Posted 21 Oct 2009 Link to this post


    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.

  3. Vlad
    Vlad avatar
    11100 posts

    Posted 22 Oct 2009 Link to this post


    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,
    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.
Back to Top