RadPivotGrid dynamic from codebehind

3 posts, 0 answers
  1. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 05 Jan Link to this post

    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. Stefan X1
    Admin
    Stefan X1 avatar
    631 posts

    Posted 09 Jan Link to this post

    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.
  3. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 09 Jan in reply to Stefan X1 Link to this post

    Thanks. I will check out the link
Back to Top