RDT onRowClicked event


#1

Hello guys, i have a problem with the onRowClicked event in the raw data table, actually we are using that event for showing the selected row info in a modal that contains more details, but whe have also some rows pinned to the bottom for some totals, and we dont want to open the modal when clicking those rows, so what should we do here.


#2

Hey @mdemian actually yes there is a way to do that, in the argument of the event callback is a property called rowPinned, you can evaluate that property and do the things that you need, like this:

const onRowClicked = (row) => {
        if (row.rowPinned !== 'bottom' && row.rowPinned !== 'top') {
           // open your modal here...
        }
    };

#3

Actually that was a good idea, i used it and it solves my problem, thank you so much