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

rebinding just a row

3 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 05 May 2010, 06:59 PM

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

3 Answers, 1 is accepted

Sort by
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 May 2010, 02:12 PM
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
0
Pavel Pavlov
Telerik team
answered on 10 May 2010, 02:40 PM
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.
0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 10 May 2010, 03:07 PM
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
Tags
GridView
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Pavel Pavlov
Telerik team
Share this question
or