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"
                                 QueryName="GetInfoBySearch"
                                 AutoLoad="False" >
        <telerik:RadDomainDataSource.DomainContext>
            <services:JetDocsDataDomainContext />
        </telerik:RadDomainDataSource.DomainContext>
        <telerik:RadDomainDataSource.QueryParameters>
                    <telerik:QueryParameter ParameterName="fileNumber"
                                        Value="{Binding Text, ElementName=txtFilterNum}" />
            <telerik:QueryParameter ParameterName="borrowerName"
                                        Value="{Binding Text, ElementName=txtFilterName}" />
        </telerik:RadDomainDataSource.QueryParameters>
     
    </telerik:RadDomainDataSource>

    My RadGridView is Tied to this DataSource
    <telerik:RadGridView Grid.Row="1" x:Name="radGridView" IsReadOnly="True"
                         CanUserFreezeColumns="False"
                         ShowGroupPanel="False"
                         RowIndicatorVisibility="Collapsed"
                         Sorted="radGridView_Sorted"
                         Filtered="radGridView_Filtered"
            
                         AutoGenerateColumns="False"
                         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()
    {
         
        this.gridDataSource.Load();
     
    }

    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?

    Thanks
  2. Rossen Hristov
    Admin
    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.

    Regards,
    Ross
    the Telerik team

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

Back to Top