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

Bind the pivot grid at client side

3 Answers 127 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 16 Aug 2018, 02:19 PM

Hello Team,

Like a rad grid has feature of client side data binding. How do we achieve same feature in rad pivot grid.

  var gridView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
  gridView.set_dataSource(result);
  gridView.dataBind();

My expectation is, user clicks a button, call gets redirected to JS file, which in turn save some data to database. now newly saved records to be displayed on pivot grid without making any server side call. 

we can have client side code which calls the API, pulls the data and bind it to pivot grid at client side like rad grid does.

 

Thanks,

Mohan Pal

 

 

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 16 Aug 2018, 03:09 PM
Hello Mohan,

You can use the Kendo UI PivotGrid widget for binding to data client-side: https://demos.telerik.com/kendo-ui/pivotgrid/index.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mohan
Top achievements
Rank 1
answered on 17 Aug 2018, 08:45 AM

Hello Marin,

Thanks for update.

Couple of questions:

1. does that mean we don't have set_dataSource property for rad pivot grid like we have for rad grid ?

2. Link shared by you is the only option we have for binding rad pivot grid using client side?

 

Thanks,

Mohan Pal

 

0
Marin Bratanov
Telerik team
answered on 17 Aug 2018, 08:52 AM
Hello Mohan,

You are correct on both counts. RadPivotGrid does not have a set_dataSource() method and binding a pivot grid to client-side data is only possible with the Kendo PivotGrid.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PivotGrid
Asked by
Mohan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Mohan
Top achievements
Rank 1
Share this question
or