Hi,
I've checked the sample code for using Ria Services with RadGridView Adding new rows to database via RIA services
Yet, this approach does not seam very MVVM like.
In my case, the ViewModel Publishes the EntitySet<T> as an IEnumerable that is returned from DataContext.
I understand that IEnumerable is not an IList but I still need the Add, Delete,... functionality from RadGridView.
I don't want to use the .ToList since that one copies the objects outside the EntitySet as far as I know.
I have thinked about ObservableCollection ["new ObservableCollection<T>(EntitySet)"] but don't know if is the right way to do it...
Can someone point me to what should I use to wrap the EntitySet (in ViewModel) for binding to RagDrigView and maintain the functionalities above (add row, delete row...)?
Thanks,
Joao Rodrigues
I've checked the sample code for using Ria Services with RadGridView Adding new rows to database via RIA services
Yet, this approach does not seam very MVVM like.
In my case, the ViewModel Publishes the EntitySet<T> as an IEnumerable that is returned from DataContext.
I understand that IEnumerable is not an IList but I still need the Add, Delete,... functionality from RadGridView.
I don't want to use the .ToList since that one copies the objects outside the EntitySet as far as I know.
I have thinked about ObservableCollection ["new ObservableCollection<T>(EntitySet)"] but don't know if is the right way to do it...
Can someone point me to what should I use to wrap the EntitySet (in ViewModel) for binding to RagDrigView and maintain the functionalities above (add row, delete row...)?
Thanks,
Joao Rodrigues