Cannot set property PageSize when CanLoad is false.

3 posts, 1 answers
  1. Anu
    Anu avatar
    8 posts
    Member since:
    May 2011

    Posted 06 Jun 2013 Link to this post

    i get this error when i try to load my gridview with the datapager. 
    This is the code i am using... what am i doing wrong here:
    Using the following version- 2013.1.403.1050

    <telerik:RadDomainDataSource x:Name="DataSourceHist" QueryName="GetHist" AutoLoad="True"   >
                   <domain:HistContext />
           <telerik:RadGridView x:Name="RadGrid_History" ItemsSource="{Binding DataView, ElementName=DataSourceHist}"
                                IsBusy="{Binding IsBusy, ElementName=DataSourceHist}"
                               Grid.Row="1" RowStyleSelector="{StaticResource fileTransmissionStatusStyle1}"
                                AutoGenerateColumns="True"  SelectionUnit="Cell" SelectionMode="Extended"
           <telerik:RadDataPager Grid.Row="2"
                                      PageSize="15" BorderThickness="1,0,1,1"
                                      Source="{Binding DataView, ElementName=DataSourceHist}"

    Domain Query:

    public IQueryable<EHistrory> GetHist()
               return this._context.EHistrories.OrderByDescending(a=> a.CreatedOn);

  2. Answer
    Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 07 Jun 2013 Link to this post


    We have tried to reproduce this on our First Look demo, but unfortunately we could not.

    Can you try moving the PageSize setting on the RadDomainDataSource instead of the pager?

    Rossen Hristov

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Anu
    Anu avatar
    8 posts
    Member since:
    May 2011

    Posted 07 Jun 2013 Link to this post

    it did work after moving pagesize  to RadDomainDataSource

Back to Top