Check for duplicates in the grid when data is updated in the grid through incell & highlight the duplicate rows with red color in ke

1 Answer 51 Views
ComboBox Grid NumericTextBox
Abhishek
Top achievements
Rank 2
Iron
Iron
Iron
Abhishek asked on 10 Jun 2024, 05:28 PM
I have a requirement for my project like, when i do incell editing in the grid, i have to check for duplicate rows in the grid & highlight the entire row with red color. & after resolving the duplicate issues by changing any of the cell value, the highlight should go off. i am already using custom components for combox & numeric textboxes.

1 Answer, 1 is accepted

Sort by
1
Accepted
Konstantin Dikov
Telerik team
answered on 12 Jun 2024, 01:21 PM

Hi Abhishek,

For achieving the desired result you can check the updated dataItem and compare it with the existing data set and if such dataItem exist, you can add additional field to the edited item (isDuplicate for example set to "true"). Then, within the rowRender event you can add a class name if the dataItem has "isDuplicate" value and customize its style:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Abhishek
Top achievements
Rank 2
Iron
Iron
Iron
commented on 03 Jul 2024, 10:31 AM

This worked for me. Thank you for the help
Abhishek
Top achievements
Rank 2
Iron
Iron
Iron
commented on 08 Oct 2024, 08:35 AM

there is 1 more new requirement added for us. We have to show tooltip on the entire row wherever i hover when there is duplicate. Kindly help
Vessy
Telerik team
commented on 10 Oct 2024, 09:26 AM

Hi, Abishek,

My colleague already has answered your other thread on the matter, for anyone else interested in the same topic, the answer can be seen here - https://www.telerik.com/forums/display-tooltip-on-entire-row-when-there-is-duplicate-records#5886758 

Tags
ComboBox Grid NumericTextBox
Asked by
Abhishek
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or