Select row event on cell click

Hi
I have a table in which if i select a row a modal appears.
Then in some cells i want, for example, click on the value and go to a url.

My problem is whenever i click on the cell it also triggers the select row event, is there a way for this not to happen?

Thank you!

Hey there @AdrianGM,

You can add add an only run condition so that when the selected cell is the one that triggers the url the event handler for the modal will not trigger, something like the below:

Right, but that would mean that i have to use the select cell event on the table.

What i have is in the column an html or a click cell event that triggers an go to url.

I will try our solution, but is there something that works with my scenario?

Ah, I see.

You could change your selectRow to a script and add a slight delay to the modal opening with a timer and check a condition before opening the modal. That condition could either be a variable or something else, that your column event handler triggered and that the script can identify. Does that make sense?

So when i click on the cell set a variable as a flag, add a debounce to the event and check if the flag has the correct value.

It might work, i will give it a try, will come back if not today, next week.

Thank you very much.

1 Like