You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: