[CLOSED] Class for clicked row in checkbox selection mode

  1. #1

    [CLOSED] Class for clicked row in checkbox selection mode

    Hi,
    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?
    Last edited by Daniil; May 06, 2014 at 6:59 AM. Reason: [CLOSED]
  2. #2
    Hi @ViDom,

    Quote Originally Posted by ViDom View Post
    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?
  3. #3
    Sorry, I missed that you use CheckOnly.

    I think you can listen to a GridPanel's ItemClick event and do the required.
  4. #4
    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"?
  5. #5
    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.

Similar Threads

  1. [CLOSED] How to prevent check box selection when cell is clicked for editing?
    By speedstepmem4 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 23, 2014, 2:10 PM
  2. Replies: 3
    Last Post: Oct 05, 2012, 11:44 AM
  3. Replies: 2
    Last Post: Dec 01, 2011, 1:00 PM
  4. Replies: 0
    Last Post: Mar 08, 2011, 4:29 AM
  5. selection changes when clicked to next page
    By aniketyadav7 in forum 1.x Help
    Replies: 11
    Last Post: Dec 10, 2010, 9:33 AM

Posting Permissions