How to trigger function/method on selected row (using rowMarkers="checkbox") #780
SyedSibtainRazvi
started this conversation in
General
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks for the information @jassmith
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Description:
I am using the rowMarkers feature in GlideApps to allow users to select rows in a grid. However, I am having trouble figuring out how to work with the data of the selected rows programmatically. There seems to be a lack of documentation or guidance on this topic.
Steps to Reproduce:
Enable rowMarkers in a GlideApps grid.
Select multiple rows using checkboxes.
Attempt to perform an action on the selected rows programmatically. Let's say console.log all the rows data that have been selected.
Additional Notes:
I have attempted to use the onGridSelectionChange event handler with the following code:
onGridSelectionChange={(selectedCells) => console.log(selectedCells)}
However, the information provided by this event handler is not sufficient for accessing the data of the selected rows. It returns the following object:
{current: undefined, rows: _CompactSelection, columns: _CompactSelection}
Expected Behavior:
It would be helpful if GlideApps provided documentation or examples on how to access and work with the data of selected rows when rowMarkers="checkbox" is enabled.
Thank you
Reagrds
Beta Was this translation helpful? Give feedback.
All reactions