captionTemplate return undefined field

hello, I looked at the documentation and searched the forum, but I didn't find the problem.
whatever field I try to show, it writes undefined

      groupOptions: { 
          columns: ["cpfcnpj"],
          showGroupedColumn: false,
          showDropArea: false,
          captionTemplate: "<div><strong>${headerText} - ${field} - ${cpfcnpj}</strong> ${if(count === 1)}<span>${count} registro</span>${else}<span>${count} registros</span> ${/if}</div>"
        },



what am I doing wrong?

Thanks!

1 Reply 1 reply marked as answer

PG Praveenkumar Gajendiran Syncfusion Team October 19, 2020 12:57 PM UTC

Hi Murilo,

Greetings from Syncfusion support.

We checked your query and provided code example. In that, we found that you are using the un-related property of groupSettingsCaptionTemplate of Grid (i.e, ${cpfcnpj}), that’s why grid shows undefined in that place. For your convenience we have prepared a sample with groupSettingsCaptionTemplate. Please find the link below. 
 
Samplehttps://codesandbox.io/s/297565-edit-in-single-click-forked-6nu1z?file=/src/App.vue

Screenshots:
Note: These are the only property you can get in groupSettingsCaptionTemplate 
 

Refer the below document for groupSettingsCaptionTemplate of Grid, 
Please get back to us if you need further assistance.

Regards,
Praveenkumar G 


Marked as answer
Loader.
Up arrow icon