onclick events data in salesforce #1032
-
How do I fetch the data of the row which is clicked in salesforce? while accessing event?.detail?.args the args object only contains the row index and the column index data referring to examples tried event?.detail?.args?.dataContext but it shows as undefined. Following is the output of printing event?.detail?.args for onclick event : { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
you can find the answer if you read the Wikis and search on Stack Overflow, some event only return the row/cell, then you need to use the DataView to get associated datacontext see Slickgrid, how to get the grid item on click event? handleOnCellClicked(event) {
const args = event?.detail?.args;
const eventData = event?.detail?.eventData;
const dataContext = this.sgb.dataView.getItem(args.row);
} Please search through the Wikis and/or ask questions on Stack Overflow which is a better platform to ask questions. SlickGrid is used by thousands of people, there are other people who can answer your questions |
Beta Was this translation helpful? Give feedback.
you can find the answer if you read the Wikis and search on Stack Overflow, some event only return the row/cell, then you need to use the DataView to get associated datacontext
see Slickgrid, how to get the grid item on click event?
Please search through the Wikis and/or ask questions on Stack Overflow which is a better platform to ask questions. SlickGrid is used by thousands of people, there are other people who can answer your questions