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

A Sample of GridView, RadDataForm using QDSCV?

2 Answers 194 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 28 Mar 2011, 03:33 AM
Hi;

I've looked at all of the samples and I'm having some difficulty using the QDSVC in code behind with GridView and RadDataForm and DataPager. Every samples repeats the RadDataSource or just POCO Employees collection, but not dealing with collection, except one MVVM sample.

Can we get a meaningful sample that is not using DataSource and uses the QDSCV to connect to RIA Services show them in grid and the dataform shows the selected item and the datapager navigates the data? I just can't get this Sync with QDSVC.

Thanks!
..Ben

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 30 Mar 2011, 02:59 PM
Hi Ben Hayat,

Thanks for this suggestion !
I  am scheduling such example to be added in our QSF for the very next official release.

Kind regards,
Pavel Pavlov
the Telerik team
0
leblanc
Top achievements
Rank 1
answered on 07 Nov 2011, 11:52 AM
to sync the RadGridView with RadDataForm
I had to add CurrentItem to my viewmodel (besides SelectedItem)
on Grid
ItemsSource="{Binding StoresQDSCV}" 
SelectedItem="{Binding SelectedStore,Mode=TwoWay}"
CurrentItem="{Binding CurrentStore, Mode=TwoWay}"
On DataForm
ItemsSource="{Binding StoresQDSCV}" 
CurrentItem="{Binding CurrentStore}"

 -------------------------------

I was able to get one view working with
IsSynchronizedWithCurrentItem="True"
SelectedItem="{Binding SelectedMarket,Mode=TwoWay}" 
CurrentItem="{Binding SelectedMarket, Mode=TwoWay}"

however it seemed to be unreliable and creating the CurrentItem property made things work consistently.


======================

I've attached my current screenshot of the application.
I use HasChanges in my domainservice to show the save/cancel buttons.




Is there a telerik "best practice" on using radgridview/raddataform?


Here are my concerns i would liked addressed:
1) One of the benefits of the RadDataForm is the New/Delete/ + Edit buttons
Without these my UI would begin looking cluttered. (extra buttons)
Ideally, I would like a ShowCommandPanel on the RadGridView similar to how asp.net mvc extensions has commandbutton area (does not exist today).

What is an example of a good UI patterns for these crud screens?

2) With my current layout if a validation fails it properly provides the validation adorner.
However, how do i get the validation summary on the raddataform?

Also if I focus off the raddataform unto the grid I'm unable to move the focus
back to the raddataform until i fix the validation rules on the grid.

If the grid is going keep me locked until I fix the validation rules I would expect the same behavior with raddataform.
This way I am forced to use the UI i started with to fix the validation problems.

3) I currently only show these buttons on the raddataform
CommandButtonsVisibility="Add, Edit, Delete, Navigation"
However, so i can Add or Edit
I think i'm going have to add Commit button.
I'm not a fan of cancel as it will not undo actions
that i do when triggered ICommand actions add/remove objects in entitycollection properties being edited on the dataform affecting CurrentItem.

I rely on the domainservice rejectchanges instead.

Adding the commit button is confusing to the user since my users don't understand that Okay doesn't save to the database..
it just persist the changes to ef change tracker and another save button is used to persist all modifications.

dataform seems to present usability problems for end users.
========================


I know there is room for improvement in my app in regards to radgridview+raddataform and would like telerik to provide some guidance on this topic.
The only sample is a RadGridView that uses raddataform inside a rowdetails for edit.
I haven't seen one that syncs both together for add/new/edit/delete .
Tags
DataForm
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
leblanc
Top achievements
Rank 1
Share this question
or