Datamanger retrieving from Meteor/Mongo server using DDP

Hi
Firstly, thank you for providing such amazing products!

I am trying to use the ej-PivotClient (JS Essentials 1) in a Meteor v1.6 application.

I can get data if I publish all collections to the client, and it works ok.
But this is not feasible for large collections.

Would you have any examples of using the DataManager to connect to Meteor (Mongo) collections using the DDP Protocol, or Meteor.Methods??
Do I have to create a Custom JSON adapter?

Thank you very much.

Existing Code using fully client side collection:

Template.dashboard.onCreated(function () {
         this.subscribe('reports.items.list');
});

Template.dashboard.onRendered(function () {
         // Use timeout to wait for data to load before pivotGrid
         Meteor.setTimeout(function () {
                  $('#PivotClient').ejPivotClient({
                      dataSource: {
                          data: Items.find().fetch()
                    },
                      isResponsive: true,
                      enableResponsiveRow: true,
                      enableAdvancedFilter: true,
                      chartType: ej.PivotChart.ChartTypes.Pie
                   });
          }, 2000);
});


1 Reply

TM Tamilarasu M Syncfusion Team March 21, 2018 03:49 AM UTC

Hi Dave,  
 
DataManager can fetch data from any data collections through various types of adaptors. For loading large sets of data, we suggest you to create collections of data with mongoDB of Data Integration Platform from the below link and bind data to PivotClient through data manager   
 
Refer to the below given links  
 
Please find the document for data adaptors in data manager   
 
Regards,  
Tamilarasu M 


Loader.
Up arrow icon