JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › rowClick Event
<div> <div> grid.addEventListener(‘rowClick’, function (evt) {</div> <div></div> <div> const id = evt.detail.row.od;</div> <div> const dataAlarm = grid.getRowData(id);</div> <div> console.log(dataAlarm)</div> <div> console.log(evt.detail.row);</div> <div> console.log(evt.detail.row.data);</div> </div> <div> above code doenot give me data…. really confused</div> <div> <div> })</div> </div> <div></div>
Hi,
const id = evt.detail.row.od should be const id = evt.detail.row.id.
Best regards, Peter Stoev
Smart UI Team https://www.htmlelements.com/