In a DataGrid Reactive
I want to get the current row number on clicking any column inside grid.
For Example if i click on March i should get value "3"
Hi Hamza,
I forked the Data Grid component to send the click event parameters (row and column numbers): https://www.outsystems.com/forge/component-overview/13211/data-grid-with-click
Does it solve your problem?
Thanks I will review. I also used JavaScript to get the numbers
Hi Hamza
I believe you want to get the grid line number. 1st Create a local variable (CurrentRowNumber) 2nd Click on Roll Cell \ Properties \ Events \ Event \ add an onclick event 3rd Add a new client action 4º Add an Assign with the variable (CurrentRowNumber) and pass the grid value (nameGrid.List.CurrentRowNumber) 5º Repeat the step for the other Row Cells (with the same Client Action) To show the value of the row add an Expression with the value of the variable (CurrentRowNumber)
I am working with DataGrid. We dont have options like getting CurrentRowNumber or calling events onClick
For future reference of anybody with the same problem :
if you prefer not to clone the datagrid component, this forge component offers a non-invase alternative to be used alongside the normal datagrid component.
DataGridEvent
Agree 100% @Dorine Boudry
In the product team, we always try to fit new features that might add extra value to it and prioritize accordingly - and this is one we have on our backlog.
Cheers,GM
@Gonçalo Martins ,
great to hear this is on your radar, maybe you can share that also on this idea.