Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] columnMouseoverevent for datatable?

Expand Messages
  • Satyam
    Tables in HTML are organized row-wise so it is difficult to do anything column-wise. Actually, not difficult, expensive would be a better word. The DOM does
    Message 1 of 2 , Dec 29, 2007
    View Source
    • 0 Attachment
      Tables in HTML are organized row-wise so it is difficult to do anything
      column-wise. Actually, not difficult, expensive would be a better word.
      The DOM does not fire many events on columns. You either have to listen to
      events on individual table cells, which means hooking dozens of listeners,
      which is expensive, or listen to cell events that bubble up to the table (so
      that you have only one listener) and on each firing check to which column it
      corresponds. So, the tableMouseoverEvent is your best bet. Listen to that
      one and check the column:

      myDataTable.subscribe('tableMouseoverEvent',function (ev) {
      var column = this.getColumn(ev.target);
      // ....

      The column.key property would be your best clue to the id of the column

      Satyam

      ----- Original Message -----
      From: "roallen2" <rallen@...>
      To: <ydn-javascript@yahoogroups.com>
      Sent: Saturday, December 29, 2007 5:14 PM
      Subject: [ydn-javascript] columnMouseoverevent for datatable?


      > The rowMouseoverEvent and rowMouseoutEvent events are nice for
      > highlighting rows as you mouse over. Is there anything similiar for
      > columns?
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      > --
      > No virus found in this incoming message.
      > Checked by AVG Free Edition.
      > Version: 7.5.516 / Virus Database: 269.17.11/1201 - Release Date:
      > 28/12/2007 11:51
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.