DomainDataSource is not using PageSize (Take) on Ria calls

4 posts, 1 answers
  1. Piet van Bruggen
    Piet van Bruggen avatar
    4 posts
    Member since:
    Dec 2009

    Posted 28 Sep 2011 Link to this post

    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

  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 30 Sep 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Andrei
    Andrei avatar
    7 posts
    Member since:
    Jan 2010

    Posted 28 Dec 2011 Link to this post

    Hi

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

    Thanks

    Andrei
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 28 Dec 2011 Link to this post

    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 >>

Back to Top