Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request #2011

Open
smaazs71 opened this issue Jul 3, 2023 · 0 comments
Open

Request #2011

smaazs71 opened this issue Jul 3, 2023 · 0 comments

Comments

@smaazs71
Copy link

smaazs71 commented Jul 3, 2023

how can we prevent from onRowClick in a customBodyRender column
Suppose we have a button or a select or an input box in the column. Then if we try to access this column it would also call the onRowClick function

Solution:
Can provide event argument in onRowClick() callback

i.e.
onRowClick: function(event: any, rowData: string[], rowMeta: { dataIndex: number, rowIndex: number }) => void

 then in callback user can use it to prevent further propagation.

Solution 2:
Can provide the column index argument in onRowClick() callback

i.e. onRowClick: function(rowData: string[], rowMeta: { columnIndex: number, dataIndex: number, rowIndex: number }) => void

 then in callback user can use it to prevent further propagation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant