We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Fields caption

Hello, I am working with the pivot table and I would like to set the title fields before knowing which fields will be used in the pivot table. In web examples, the title is already defined in dataSourceSettings. But in my case the data source will change and I don't know which fields were chosen.

1 Reply

SA Scintilla Arul Jothi Raj Syncfusion Team August 14, 2019 11:14 AM UTC

Hi Alex, 

Thanks for contacting Syncfusion support. Please find the response below. 

You can change the caption name in the “enginePopulated” event. Please find the following code snippet. 

Code snippet: [JavaScript] 
enginePopulated: function(args) { 
   var captions = ['A', 'B', 'C', 'D', 'E', 'F', 'G'] 
   var i=0; 
   var obj = this.engineModule.fieldList; 
   for (var key in obj) { 
     if (obj.hasOwnProperty(key)) { 
       this.engineModule.fieldList[key].caption = captions[i]; 

Please let us know if you have any concerns. 
Scintilla A 

Live Chat Icon For mobile
Up arrow icon