Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103061
    Joko Pitoyo
    Participant

    <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>

    #103064
    admin
    Keymaster

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.