Cannot add a DataPager on the demo project

5 posts, 0 answers
  1. Alice
    Alice avatar
    4 posts
    Member since:
    Sep 2013

    Posted 13 Oct 2013 Link to this post

    Hi,

    I have downloaded the demo project in order to test it. Unifortunatly I cannot add a reference to the library :
    • Telerik.Windows.Data.dll
    Also, I cannot use the datapager :

                <telerik:RadDataPager Name="xRadDataPager" Source="{Binding Items, ElementName=radGridView1}" PageSize="5" />
                   
    Any help please?

    I'm working with the WPF demo project - VisualStudio 2012.

    Regards,
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 14 Oct 2013 Link to this post

    Hi Alice,

    Will it be possible to clarify a bit - what do yo mean by not being able to add a reference ? Can you verify whether the assembly is of the same type (for WPF) and same version ? What is the behavior that you get ?
    As for the data pager, please check out our documentation for a reference. 

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alice
    Alice avatar
    4 posts
    Member since:
    Sep 2013

    Posted 14 Oct 2013 Link to this post

    Good morning,

    Many thanks for your reply. Sorry, English is not my natiove language so I hope you will understand what I mean...

    I don't have any reference to the DLL which manage the DataPager.

    On Visual Studio Reference > Add reference  + search for the DLL 
    • Telerik.Windows.Controls.Data.dll
    --> Visual Studio does not find it...
    SEE : http://www.telerik.com/help/wpf/raddatapager-getting-started.html#Paging_RadGridView

    Collapse imageAdding RadDataPager

    In order to use RadDataPager in your project, you need to add references to the following assemblies:

    • Telerik.Windows.Controls.dll --> OK
    • Telerik.Windows.Controls.Data.dll --> KO
    • Telerik.Windows.Data.dll --> OK
    If I use the code below :

            <controls:RadGridView Name="radGridView1"  controls3:StyleManager.Theme="Windows8Touch" ColumnWidth="*" AutoGenerateColumns="False">
                <controls:RadGridView.Columns>
                    <controls:GridViewDataColumn DataMemberBinding="{Binding LastName}" 
                       Header="Last Name" />
                    <controls:GridViewDataColumn DataMemberBinding="{Binding FirstName}"
                       Header="First Name" />
                    <controls:GridViewDataColumn DataMemberBinding="{Binding Age}" 
                       Header="Age" />
                    <controls:GridViewDataColumn DataMemberBinding="{Binding Married}" 
                       Header="Is Married?" />
                </controls:RadGridView.Columns>

               <telerik:RadDataPager Name="xRadDataPager" Source="{Binding Items, ElementName=radGridView1}" PageSize="5" />
    </controls:RadGridView>

    I have a compiled error : the target RadDataPager does not exist in the namespace Telerik.Windows.Controls

    I'm working with the WPF Free trial.

    Many thanks.
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 15 Oct 2013 Link to this post

    Hello Alice,

    I am attaching a sample project illustrating how you can work with RadGridView and RadDataPager.
    I hope that helps. 

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Alice
    Alice avatar
    4 posts
    Member since:
    Sep 2013

    Posted 15 Oct 2013 Link to this post

    Hi,

    I hava added manually the missing DLL to the project and I have no more compilation errors.
Back to Top
UI for WPF is Visual Studio 2017 Ready