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

DomainDataSource is not using PageSize (Take) on Ria calls

3 Answers 53 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Piet van Bruggen
Top achievements
Rank 1
Piet van Bruggen asked on 28 Sep 2011, 08:15 PM

Hello,

I have an issue with the domaindatasource control; we use this control combined with a grid and pager and this works ok from xaml with the following code:

<telerik:RadDomainDataSource x:Name="grdDataSource" PageSize="20" AutoLoad="True" QueryName="GetCustomers">
    <telerik:RadDomainDataSource.DomainContext>
        <myService:myContext/>
    </telerik:RadDomainDataSource.DomainContext>
    <telerik:RadDomainDataSource.SortDescriptors>
        <telerik:SortDescriptor Member="Id" SortDirection="Ascending"/>
    </telerik:RadDomainDataSource.SortDescriptors>
</telerik:RadDomainDataSource>
<telerik:RadGridView x:Name="grdData"
    SelectionMode="Single" IsReadOnly="True"  VerticalAlignment="Top" AutoGenerateColumns="True"                                        
    ItemsSource="{Binding PagedSource, ElementName=grdPager}"
    IsBusy="{Binding IsBusy, ElementName=grdDataSource}" />
<telerik:RadDataPager x:Name="grdPager" PageSize="10"
     Source="{Binding DataView, ElementName=grdDataSource}"
     DisplayMode="FirstLastPreviousNextNumeric, Text"
     IsTotalItemCountFixed="True" />

(Sorry about the diff in pagesize on pager and domainsource... but that is not the issue here)

As said the above works great; using fiddler i see a nice query using Take, OrderBy and Skip.

However when i now change the QueryName from code-behind the control stops sending the Take. This results in a download of a large amount of records, resulting in iexplore to crash... :(

It feels like this is a bug, but maybe i'm overseeing something...

Thanks in advance for helping out!

Regards,

Piet

3 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 30 Sep 2011, 05:55 AM
Hi Piet Van Bruggen,

Please, see my answer in the other thread.

Greetings,
Ross
the Telerik team

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

0
Andrei
Top achievements
Rank 1
answered on 28 Dec 2011, 11:12 AM
Hi

Can you please link to the thread as i have a very similar issue

Thanks

Andrei
0
Rossen Hristov
Telerik team
answered on 28 Dec 2011, 12:13 PM
Hello,

Here is the link.

Greetings,
Ross
the Telerik team

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

Tags
DomainDataSource
Asked by
Piet van Bruggen
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Andrei
Top achievements
Rank 1
Share this question
or