Hi team,
I am using igx-select in igx-grid.
Requirement: Get the selected value from previous row and remove/hide/disable the selected value in the next row.
Unable to get the selected value from the previous row in igx-select.
Pls help to achieve the same. Please reply soon.
Dear Customer,Thank you for contacting Infragistics Developer Support.
We are afraid to say that we now have many inquiries in queue. We are making efforts to take care of them in order of arrival, but it might take some more time until we can start the investigation about this support case.
Thank you in advance for your understanding.
Hi Shobhana,
Thank you for posting to Infragistics Community!
Before I proceed with assisting you, could you please share more details regarding what the previous and next rows should reference? Which would be the “current” row then?
Based on my current understanding though, what I can suggest is making sure that the IgxSelect’s selected value is properly bound to the cell’s editValue. Then, the select’s value could easily be retrieved by accessing the target cell’s value through the IgxGrid’s API. For instance, the getCellByColumn method might be useful in this case, as it retrieves a cell based on its row index and column name:
const raceCellRecord0 = this.grid1.getCellByColumn(0, 'race').value;
Here is a minimal sample demonstrating the above. If this is not an accurate demonstration of what you’re trying to achieve, please, provide more information on the requirement and ideally, please fork and modify the sample to demonstrate what you are currently attempting. Thank you for your cooperation.
Best regards, Bozhidara Pachilova Associate Software Developer