Stop Rows from Highlighting on Selection

  1. #1

    Stop Rows from Highlighting on Selection

    *Hello,

    I am attempting to my grids rows from highlighting when selected. *I have followed the idea of over-riding the css for the grid class but this does not seem to work. *Any ideas here ... perhaps a better way?
    *<style type="text/css">
    ** * * *#TimeCardGrid.x-grid-row-selected
    ** * * *{
    ** * * *}
    ** * * *#TimeCardGrid.x-grid-cell-selected
    ** * * *{
    ** * * *}
  2. #2

    RE: Stop Rows from Highlighting on Selection

    *Hi,

    What about*DisableSelection="true" for GridPanel


  3. #3

    RE: Stop Rows from Highlighting on Selection

    *Thanks vlad ill try that. *I also got the intended behavior doing this:

    *<style type="text/css">
    ** * **
    ** *	#TimeCardGrid .x-grid3-row-selected
    ** *	{
    ** *		background-color: White !important;
    ** * * *}
    ** * * #TimeCardGrid .x-grid3-row-alt*
    ** * * *{
    ** * * * * *background-color:#FAFAFA !important;
    ** * * *}
    ** * * *.over-limit
    ** * * *{
    ** * * * * *background-color:LavenderBlush !important;
    ** * * *}
    ** * * *.under-limit
    ** * * *{
    ** * * *}
    ** *</style>

    Use firefox to look at the CSS
  4. #4

    RE: Stop Rows from Highlighting on Selection

    *In this case, I need selction on because there is a deleted selected lines function. *In this situation i think over-riding the css is the best case.
  5. #5

    RE: Stop Rows from Highlighting on Selection

    *The following is even better because the it over-rides the border too.

    *<style type="text/css">
    
    
    ** *	#TimeCardGrid .x-grid3-row-selected
    ** *	{
    ** *		background-color: White !important;
    ** *		border-color:#FFFFFF #EDEDED #EDEDED;
    ** * * * * *border-style:solid;
    ** * * * * *border-width:1px;
    ** * * * * *cursor:default;
    ** * * *}
    ** * * *#TimeCardGrid .x-grid3-row-alt*
    ** * * *{
    ** * * * * *background-color:#FAFAFA !important;
    ** * * * * *border-color:#FFFFFF #EDEDED #EDEDED;
    ** * * * * *border-style:solid;
    ** * * * * *border-width:1px;
    ** * * * * *cursor:default;
    ** * * *}
    
    
    ** * * *.over-limit
    ** * * *{
    ** * * * * *background-color:LavenderBlush !important;
    ** * * *}
    ** * * *.under-limit
    ** * * *{
    ** * * *}
    ** *</style>

Similar Threads

  1. [CLOSED] Highlighting TreeNode without firing selection change
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 05, 2011, 3:45 PM
  2. [CLOSED] [1.0] GridPanel and highlighting
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 17, 2010, 10:30 PM
  3. Replies: 0
    Last Post: Sep 01, 2010, 2:35 PM
  4. [CLOSED] toggle selection of rows with a column that match a val
    By hillscottc in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 12, 2010, 3:44 PM
  5. [CLOSED] Highlighting a stand-alone image (lie a GridCommand)
    By r_honey in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 15, 2010, 3:24 PM

Posting Permissions