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

Cannot add a DataPager on the demo project

4 Answers 138 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alice
Top achievements
Rank 1
Alice asked on 13 Oct 2013, 08:08 PM
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,

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 14 Oct 2013, 05:57 AM
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 >>
0
Alice
Top achievements
Rank 1
answered on 14 Oct 2013, 07:55 AM
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.
0
Maya
Telerik team
answered on 15 Oct 2013, 09:20 AM
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 >>
0
Alice
Top achievements
Rank 1
answered on 15 Oct 2013, 09:23 AM
Hi,

I hava added manually the missing DLL to the project and I have no more compilation errors.
Tags
General Discussions
Asked by
Alice
Top achievements
Rank 1
Answers by
Maya
Telerik team
Alice
Top achievements
Rank 1
Share this question
or