rebinding just a row

4 posts, 0 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 05 May 2010 Link to this post

    I have a gridview attached to a ria domain data source

    When a row exits edit mode
    I submit changes to the server

        Private Sub gridBillsDetail_RowEditEnded(ByVal sender As ObjectByVal e As Telerik.Windows.Controls.GridViewRowEditEndedEventArgs) Handles gridBillsDetail.RowEditEnded  
            If BomContext.HasChanges Then 
                gridBillsDetail.IsBusy = True 
                BomContext.SubmitChanges(AddressOf submitFinished, Nothing)  
            End If 
        End Sub 
        Private Sub submitFinished(ByVal sop As SubmitOperation)  
            gridBillsDetail.IsBusy = False 
            '        gridBillsDetail.Rebind()  
        End Sub 
     

    The server changes some of the data before it is updated.
    Unfortunatly the displayed row does not reflect those changes even thought the data has been retrieved

    Rebinding the entire grid does work
    but this changes the vertical scroll position of the grid

    Is there any way to rebind just the row that was changed

    thanks
    dco

  2. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 07 May 2010 Link to this post

    unforuntately rebinding also takes the grid out of edit mode

    any body have any ideas about just rebinding a single row  (from ria domain service)
    so it displays server updated data properly

    thanks
    dco
  3. DevCraft banner
  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 10 May 2010 Link to this post

    Hello David Ocasio,


    RadGridView may update just a single row if  the underlying business object has the INotifyPropertyChanged interface implemented. So the problem may be solved with the proper view model.

    You may use a proxy collection of custom objects raising the NotifyPropertyChanged event when the relevant Entity was changed.

    Regards,
    Pavel Pavlov
    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.
  5. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 10 May 2010 Link to this post

    I would have to then assume then that the ria domain data service does not have INotifyPropertyChanged implemented
    since i simply set the itemssource to one of its object lists.

    As far as you know is that correct.

    thanks
    dco
Back to Top