This is a migrated thread and some comments may be shown as answers.

Kendo Angular Grid --> How to highlight the Edited row

2 Answers 1156 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sankar
Top achievements
Rank 1
Sankar asked on 10 May 2018, 12:25 PM
Hi Team,

I followed below link and created editable gird.
https://www.telerik.com/kendo-angular-ui/components/grid/editing/editing-reactive-forms/

Here I have the requirement when use click on edit button that selected row highlighted with light yellow color,
This will inform the users which row we are editing.

Please refer the attached image.
Can you please help me on this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 11 May 2018, 12:25 PM
Hi Sankar,

You can target the Grid row that is in editing mode by its k-grid-edit-row class (and also the alt-rows with a higher-specificity selector) and style it in accordance with your preference, e.g.:

styles: [`
    >>> .k-grid-edit-row, >>> .k-grid tr.k-alt.k-grid-edit-row {
      background-color: lightgoldenrodyellow;
    }
  `]

https://plnkr.co/edit/Hzo4tA1QXA7D3Ih9UNDI?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sankar
Top achievements
Rank 1
answered on 11 May 2018, 12:35 PM
Thanks lot. Working as expected :)
Tags
General Discussions
Asked by
Sankar
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Sankar
Top achievements
Rank 1
Share this question
or