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

RadPivotGrid dynamic from codebehind

2 Answers 41 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
newp
Top achievements
Rank 1
newp asked on 05 Jan 2017, 10:15 AM

Hi,

Need some help please

How can I bind a  RadPivotGrid dynamically from codebehind?

The select query can change depending on a dropdownlist I have on the page so the field names will also change.

Example of select :

Select CompanyName, EmployeeId, FirstName,LastName, Salary from Table1

Example of Grid

CompanyName  Number of employees  Total Salary

Company1              23                                  345,676

 

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 09 Jan 2017, 01:14 PM
Hi,

In case I am understanding your requirement correctly, you should be able to define the needed DataProvder for RadPivotGrid at runtime. Please, check out the relevant section of RadPivotGrid's online help.

Hopefully, this helps.

Best Regards,
Stefan X1
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
newp
Top achievements
Rank 1
answered on 09 Jan 2017, 05:34 PM
Thanks. I will check out the link
Tags
PivotGrid
Asked by
newp
Top achievements
Rank 1
Answers by
Stefan
Telerik team
newp
Top achievements
Rank 1
Share this question
or