Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41

    Changing the row BackgroundColor ?

    Hi everybody,

    when i change the row attribute using
    Code:
    itemUpdate.setRowAttribute("#888888","#888888","backgroundColor");
    this only changes the background of the string, not all the background of the row.

    For example, if i have a cell that can carry 10 characters, written in it the word "hello", the setRowAttribute will only changes the background underneath the word "hello", but not the background of all the row (underneath the word "hello", and the rest of the cell).

    Is there a way to change the background of all the row ?

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    hi,

    no there isn't, not directly, the library only changes the background of html elements binded to cell updates, the setRowAttribute is just a shortcut to call the same setAttribute on all the cells of a row involved in an update.

    If you use a "Dyna" table, you receive the dom node that is a clone of the original template as a parameter of the onChangingValues callback, so you can change directly the background color modifying its style.

    For other tables you can exploit the itemNumber that you receive with the onChangingValues to identify the updated row and change the background through the dom.

    HTH

 

 

Similar Threads

  1. Changing subscribed topic
    By simonef in forum Client SDKs
    Replies: 1
    Last Post: June 10th, 2008, 02:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:37 AM.