GridView visual update error info issue

4 posts, 1 answers
  1. Calabonga
    Calabonga avatar
    29 posts
    Member since:
    Nov 2009

    Posted 03 Aug 2010 Link to this post

    Hi. I have some trouble.
    I'm using:
    - Silverlight
    - MVVM
    - RIA
    - RadGridView (2010.2.0714 (July 14, 2010))
    - Editing entity in Modal Dialog (RadWindow)
    - Modal Dialog content  is DataForm (Silverlight toolkit)
    Grid XAML:

    telerik:RadGridView Grid.Row="1"
                                     SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}"
                                     ItemsSource="{Binding ElementName=Source, Path=Data}"
                                     grid:RadGridViewHelper.ColumnsCollection="{Binding Path=ColumnsCollection}"
                        <i:EventTrigger EventName="Deleting">
                            <clb:EventToCommand Command="{Binding Path=DeleteEntityCommand}"
                                                IsSendEventArgsToCommand="True" />
                        <i:EventTrigger EventName="RowActivated">
                            <clb:EventToCommand Command="{Binding Path=EditEntityCommand}"
                                                IsSendEventArgsToCommand="True" />
                        <i:EventTrigger EventName="AddingNewDataItem">
                            <clb:EventToCommand Command="{Binding Path=AddEntityCommand}"
                                                IsSendEventArgsToCommand="True" />
                        <i:EventTrigger EventName="Filtering">
                            <clb:EventToCommand Command="{Binding Path=FilteringCommand}"
                                                IsSendEventArgsToCommand="True" />
                            <clb:EventToCommand Command="{Binding Path=UpdateDDSFilterCommand}"
                                                CommandParameter="{Binding ElementName=Source}" />

    MVVM method EditEntityCommand:
    ModalDialogWorker mdw = new ModalDialogWorker();
                        RadWindow dialog = new ExtendedRadWindow();
                        IModalView view = new PersonDialogModalView();
                        dialog.Header = ApplicationStrings.DialogEditingTitle;
                        Person person = (Person)this.SelectedItem;
                        GridViewCell grid = ((GridViewCell)e.OriginalSource);
                        ModalViewContext<Person> cntx = new ModalViewContext<Person>(Dictionary.List, person, new PersonViewModel());
                        mdw.ShowDialog(dialog, view, cntx, p =>
                                 if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)

    remark: this.BridgeContext = DomainContext (RIA)

    Everything work fine, BUT!!!
    If I make error in DataForm, I'll see the red validation mark (and in gridview too), that is ok. But when I click Cancel button on ModalDialog, the dialog will closed and this.BridgeContext.RejectChanges. But the gridview stay marked error (see attached images), however, DomainContext has no errors.

    Help to fine solution!!! PLEASE!!!

  2. Answer
    Nedyalko Nikolov
    Nedyalko Nikolov avatar
    871 posts

    Posted 05 Aug 2010 Link to this post

    Hello Calabonga,

    This issue is already fixed just update to our next latest internal build assemblies.
    Sorry for the inconvenience caused.

    P.S. I've updated your Telerik points.

    Best wishes,
    Nedyalko Nikolov
    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
  3. DevCraft R3 2016 release webinar banner
  4. Calabonga
    Calabonga avatar
    29 posts
    Member since:
    Nov 2009

    Posted 05 Aug 2010 Link to this post

    Thanks! Very pleasant to work with you and with your's RadControls
  5. jay
    jay avatar
    39 posts
    Member since:
    Jun 2010

    Posted 08 Oct 2010 Link to this post

    Hello Calabonga,
    It just occurred to me that you have successfully implemented a solution i am try to get going. I am using similar technologies and i am interested in seeing more of your solution. Just the area that deals with launching the RadWindow from MVVM, performing the necessary edits, and cancelling changes/updating the database on closing the dialog.

    Can you provide me with some more code snippets?

Back to Top