View Full Version : [CLOSED] Class for clicked row in checkbox selection mode

Apr 30, 2014, 8:20 AM
I have a grid with Checkbox Multi Selection and CheckOnly = true. I want to add css class to the last cliked row which is not selected by checkbox.
How can I do that?

Apr 30, 2014, 12:39 PM
Hi @ViDom,

which is not selected by checkbox.

Do you mean that if a row is selected not by checkbox, you don't need to add a class to such a row?

Apr 30, 2014, 12:50 PM
Sorry, I missed that you use CheckOnly.

I think you can listen to a GridPanel's ItemClick event and do the required.

Apr 30, 2014, 1:14 PM
Ok, I managed that by using CellClick Listner, I set my css class to the table row. But now I have another problem. I want to change font-weight in all cells of clicked row by setting my css class for row. It dosen't work, becouse of ".x-grid-cell" class on "td".
Is there any way to force using font from my row's css class instead of from "td"?

Apr 30, 2014, 5:04 PM
You should specify a correct selector in your CSS rule.

If you can post a sample to reproduce the problem, I can look at why the font rule is not being applied.