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

GridView Not Reflecting Changes made by a second user

1 Answer 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 16 Sep 2011, 11:05 PM
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

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Sep 2011, 11:53 AM
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 >>

Tags
GridView
Asked by
Eric
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or