[OutSystems Data Grid] Get current right clicked row and add values as context items
data-grid-reactive
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive

Hello guys,

is it possible to get the current row data where the rightclick was executed (the row is NOT selected!)?

and can i add dynamic items (with on click action) to the context menu before the context menu is showing?


Thank you




Hi @AndiK,

Thanks for reaching us.

You can add items to your context menu on your grid. To add the reported behavior to right click, with just need to use the block MenuItem_CustomOption of the Grid and on the event "ClickEvent" use a JS node with this API: GridAPI.Rows.GetRowData(gridID, rowNumber). You need to pass the GridId and the RowNumber. Check the image below:

Please check if this works for you.

Thanks
Bruno Marcelino



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.