GridView Not Reflecting Changes made by a second user

2 posts, 0 answers
  1. Eric
    Eric avatar
    17 posts
    Member since:
    Aug 2011

    Posted 16 Sep 2011 Link to this post

    I have a RadDomainDataSource.
    It is pulling a collection of information from RIA Services.  It is receiving information from POCO

    <telerik:RadDomainDataSource x:Name="gridDataSource"
                                 AutoLoad="False" >
            <services:JetDocsDataDomainContext />
                    <telerik:QueryParameter ParameterName="fileNumber"
                                        Value="{Binding Text, ElementName=txtFilterNum}" />
            <telerik:QueryParameter ParameterName="borrowerName"
                                        Value="{Binding Text, ElementName=txtFilterName}" />

    My RadGridView is Tied to this DataSource
    <telerik:RadGridView Grid.Row="1" x:Name="radGridView" IsReadOnly="True"
                         IsBusy="{Binding IsBusy, ElementName=gridDataSource}"
                         ItemsSource="{Binding DataView, ElementName=gridDataSource}">

    I force the Domain Source to Load when the user clicks a search button

    private void ReloadDataSource()

    Everything works as expected.  As i add and Edit, my changes are shown and it works extremely well.
    BUT, When a second user EDIT's a record, and i perform a new search, the updated information is not shown in my Grid.
    If the second user INSERTS a record, and i perform a new search, i do receive the NEW record.

    I have confirmed that on my Updated Data is being returned in my DomainService, but the Grid is not reflecting the change.
    It is like it realizes i already have record with ID 12, i'm just going to show what i already now. 

    Is there a way that i can force the Grid or the DataView inside the RadDataSource to update?

  2. Rossen Hristov
    Rossen Hristov avatar
    2477 posts

    Posted 19 Sep 2011 Link to this post

    Hello Eric,

    Can you try to attach to the LoadingData event and set the following:

    e.LoadBehavior = LoadBehavior.RefreshCurrent;

    In case this does not help, I would like to ask you to send me a small sample project that I can debug.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top