How do I customize a grid cell's display and behavior based on a value in a different column on the same row?

1 Answer 11 Views
Grid
Frank
Top achievements
Rank 1
Iron
Frank asked on 25 Mar 2024, 05:54 PM

I have a grid whose first column is a string column, and the 2nd and 3rd columns are sometimes dropdowns based on the value shown in the first column.

I have it mostly working except for a small issue. If I click slowly enough it seems to work but if i click around the different cells eventually my dropdown appears in a cell that it should not. What is the correct way to implement the described behavior?

Should I be looking for a cell template solution? Or do I need to subscribe to a custom grid event?

Any advice would be much appreciated.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Frank
Top achievements
Rank 1
Iron
answered on 25 Mar 2024, 06:48 PM
Nevermind I figured it out. It was BeforeEdit() that I needed.
Mihaela
Telerik team
commented on 28 Mar 2024, 09:00 AM

Thank you for the update, Frank. Utilizing the BeforeEdit event is the correct approach to control the cell values based on a specified condition.

If any related questions arise, feel free to share them.

Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Iron
Answers by
Frank
Top achievements
Rank 1
Iron
Share this question
or