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