How to add title to dynamically loaded column

Hi Team,

I am using ejs-grids where I am facing an issues. Here want to show title for few dynamically loaded columns.

I am able to add title attribute to custom-template. But, unable to add title to column which doesn't have custom-template

              <e-column
                field="CustomerName"
                :headerText="$t('deliveryorders.outletnameaddr')"
                :template="customerNameAddress"
                :customAttributes="customAttributes"
                textAlign="left"
                width="120"
                minWidth="120"
                maxWidth="180"
              ></e-column>
              <e-column
                field="RouteName"
                :headerText="$t('deliveryorders.RouteName')"
                textAlign="left"
                :template="routeNameTempate"
                :customAttributes="customAttributes"
                :filter="filterOptions"
                width="80"
                minWidth="80"
                maxWidth="150"
              ></e-column>

Thanks & Regards, Sandeep G




3 Replies

PS Pavithra Subramaniyam Syncfusion Team November 26, 2021 01:02 PM UTC

Hi Sandeep, 

Thanks for contacting Syncfusion support. 

You can achieve your requirement by adding “title” attribute inside the “queryCellInfo” event which will be triggered for each cell rendering. Please refer to the below code example and API link for more information. 

methods: { 
    queryCellInfoEvent: function(args) { 
      args.cell.title = args.data[args.column.field];   
    } 
} 



Please get back to us if you have any queries. 

Regards, 
Pavithra S 



SG Sandeep G December 20, 2021 01:26 PM UTC

Hi Pavithra,


Thanks for resolving my query.

Regards,
Sandeep G



PS Pavithra Subramaniyam Syncfusion Team December 21, 2021 05:33 AM UTC

Hi Sandeep, 

You are most welcome! 

Please get back to us If you need further assistance. We are always happy to assist you. 

Regards, 
Pavithra S 


Loader.
Up arrow icon