JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid Dynamic Template : Add Html Radio Button to the grid cause replicating on scroll Reply To: Dynamic Template : Add Html Radio Button to the grid cause replicating on scroll

#103428

Hi,

I have reproduced your situation by the given code and I saw that you are accessing the row id incorrectly.
To get the row id you can access it from ‘formatObject.row.id’. You are trying to access it from formatObject.row.data
formatObject.row.data contains the datafields with their values and $ object with id and index.

 

I suggest following the given example and accessing the row id —> formatObject.row.id

 

Here is an example of logging the row id in the console on checkbox click: stackblitz

 

I will wait for the result!

 

Best Regards,
Svetoslav Borislavov

Smart UI Team
https://www.htmlelements.com/