PHP Classes

Changing the row color when a checkbox is selected

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Changing the row color when a...  >  (Un) Subscribe thread alerts  
Subject:Changing the row color when a...
Summary:Changing the row color when a checkbox is checked (selected)
Messages:2
Author:Fafar Jamal
Date:2007-12-06 04:52:53
Update:2007-12-09 21:28:27
 

  1. Changing the row color when a...   Reply   Report abuse  
Picture of Fafar Jamal Fafar Jamal - 2007-12-06 04:52:53
I'm using drasticDataGrid and I'd like to know if there is any way that if a user selects (checks) a checkbox, the background color of the entire row changes its color (for example becomes red). I'm actually using checkboxes in two columns and I want to implement this feature for both of them. (In other words, if either one is selected, the row background color changes to red).
Thanks for your help.

  2. Re: Changing the row color when a...   Reply   Report abuse  
Picture of dd dd - 2007-12-09 21:28:27 - In reply to message 1 from Fafar Jamal
There is no outofthebox solution with the current version.
The easiest way would be to encode this functionality in the
t.ddcommon.updatelisteners.push(function(id, col, value, caller) {
}
callback within drasticgrid