binding pagesize of dapapager

2 posts, 0 answers
  1. na hui
    na hui avatar
    6 posts
    Member since:
    Dec 2009

    Posted 19 Apr 2013 Link to this post

    Requirements

    RadControls version

     

    2012.3.1017.1050
    .NET version

     

    4.0
    Visual Studio version

     

    2010
    programming language

     

    C#
    browser support

    all browsers supported by RadControls

    <telerik:RadDomainDataSource x:Name="DS" QueryName="GetB_Dict" AutoLoad="True">
                        <telerik:RadDomainDataSource.DomainContext>
                            <my:DomainService1 />
                        </telerik:RadDomainDataSource.DomainContext>
                        <telerik:RadDomainDataSource.FilterDescriptors>
                            <telerik:FilterDescriptor Member="Type" Operator="IsEqualTo" Value="type1" />
                        </telerik:RadDomainDataSource.FilterDescriptors>
                    </telerik:RadDomainDataSource>

    <telerik:RadDataPager Grid.Row="3" Margin="0,-1,0,0" PageSize="{Binding myPageSize}"
              Source="{Binding DataView,ElementName=DS}"
              IsTotalItemCountFixed="True" DisplayMode="FirstLastPreviousNextNumeric, Text" />

    In the case, if in the RadDomainDataSource have telerik:RadDomainDataSource.FilterDescriptors , and the RadDataPager property PageSize="{Binding myPageSize}",  then throw error   Cannot set property PageSize when CanLoad is false.

    位于 Telerik.Windows.Controls.RadDomainDataSource.OnPageSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       位于 Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       位于 System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       位于 System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       位于 System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
       位于 Telerik.Windows.Controls.RadDomainDataSource.OnViewPropertyChanged(Object sender, PropertyChangedEventArgs e)
       位于 System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
       位于 Telerik.Windows.Data.QueryableCollectionView.OnPropertyChanged(PropertyChangedEventArgs e)
       位于 Telerik.Windows.Data.QueryableDomainServiceCollectionViewBase.OnPropertyChanged(PropertyChangedEventArgs e)
       位于 Telerik.Windows.Data.QueryableCollectionView.set_PageSize(Int32 value)
       位于 Telerik.Windows.Data.DataItemCollection.set_PageSize(Int32 value)
       位于 Telerik.Windows.Controls.Data.DataPager.DataPagerViewModel.set_PageSize(Int32 value)
       位于 Telerik.Windows.Controls.Data.DataPager.DataPagerViewModel..ctor(IEnumerable source, Int32 pageSize, Boolean isTotalItemCountFixed, Int32 pageIndex)
       位于 Telerik.Windows.Controls.RadDataPager.get_ViewModel()
       位于 Telerik.Windows.Controls.RadDataPager.UpdateItemCount()
       位于 Telerik.Windows.Controls.RadDataPager.UpdateControl()
       位于 Telerik.Windows.Controls.RadDataPager.OnSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       位于 Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       位于 System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       位于 System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       位于 System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
       位于 System.Windows.Data.BindingExpression.SendDataToTarget()
       位于 System.Windows.Data.BindingExpression.SourceAcquired()
       位于 System.Windows.Data.BindingExpression.PerformTargetLoaded()
       位于 System.Windows.Data.BindingExpression.TargetLoaded(Object o, RoutedEventArgs e)
       位于 MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       位于 MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)


    Help me! thanks!
  2. na hui
    na hui avatar
    6 posts
    Member since:
    Dec 2009

    Posted 22 Apr 2013 Link to this post

    hello , Why didn't answer.
  3. DevCraft banner
Back to Top