Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Custom attribute in infragistic grid cell
posted

Hi All,

I would like to add a custom attributes to each cell in ignite ui grid and attribute value should be the column header value and index value of grid.

e.g. <td Name='Niranjan' Day='1'></td>

Here in above example Name value should be the

Can anyone help me out?

Thanks in Advance!!

Regards,

-Niranjan V

Parents
  • 23953
    Offline posted

    Hello Niranjan,

    Try using column template like this:

    { headerText: 'Column1' , key: 'Column1', dataType: 'number' , template: "<td Name='Niranjan' Day='1'>${Column1}</td>" }

    From what you describe it looks like those values are static. If not, you can use hidden columns to get the data from them (using the fromat ${ColumnName} to reference the column in the template) and populate the attributes with dynamic data.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Reply Children