A Sample of GridView, RadDataForm using QDSCV?

3 posts, 1 answers
  1. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 27 Mar 2011 Link to this post


    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.

  2. Answer
    Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 30 Mar 2011 Link to this post

    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
  3. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 07 Nov 2011 Link to this post

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