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

Re: Tooltoip to the datatable...

Expand Messages
  • bcomeara
    I could also use an example of how to style a tooltip generated in this manner. Thank you, Brian
    Message 1 of 8 , Feb 1, 2008
    • 0 Attachment
      I could also use an example of how to style a tooltip generated in
      this manner.

      Thank you,
      Brian

      --- In ydn-javascript@yahoogroups.com, "Carly" <carlyk@...> wrote:
      >
      > I'm basically implementing this same solution on my datatable.
      > Everything is working great as far as the correct data being
      > displayed. My only issue is that the styling is no longer being
      > applied. I also cannot seem to get the tooltip to stay up any longer
      > than 5 seconds. Even when I modify the properties for hide delay, it
      > does not seem to help. I know that the .css is recognized as I can
      > see that styling does work for a simple tooltip (just not the
      > datatable one).
      >
      > Were you able to get styling to work on your tooltip? I have a
      > feeling these two issues are related. Any ideas are much appreciated!
      >
      > Carly
      > --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@> wrote:
      > >
      > > My pleasure!
      > > ----- Original Message -----
      > > From: Nagasamudram, Prasanna Kumar
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Tuesday, August 28, 2007 3:14 PM
      > > Subject: RE: [ydn-javascript] Tooltoip to the datatable...
      > >
      > >
      > > Wow!
      > >
      > >
      > >
      > > That solves my problem ..
      > >
      > >
      > >
      > > Thanks a lot again!!!!!!!
      > >
      > > Prasanna
      > >
      > >
      > >
      > >
      > >
      >
      ------------------------------------------------------------------------------
      > >
      > > From: ydn-javascript@yahoogroups.com
      > [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Satyam
      > > Sent: Tuesday, August 28, 2007 6:34 PM
      > > To: ydn-javascript@yahoogroups.com
      > > Subject: Re: [ydn-javascript] Tooltoip to the datatable...
      > >
      > >
      > >
      > > If the tooltip text comes from the database as the rest of the
      > record, you can read it from the oRecord argument. Of course, you
      > wouldn't want it displayed as a full column. To prevent that, you
      > only need to avoid mentioning that field in the column definitions but
      > you still have to have it in the responseSchema.fields array for the
      > DataSource. In this way, the extra field will be read and will be
      > available to you in the oRecord argument, but won't have a column for
      > its own since it it is not mentioned in the column defs for DataTable.
      > >
      > >
      > >
      > > Then, your formatter function might read like this:
      > >
      > >
      > >
      > > function addTooltip(elCell, oRecord, oColumn, oData)
      > >
      > > {
      > >
      > > elCell.title= oRecord.getData('tooltip');
      > >
      > > elCell.innerHTML = oData;
      > >
      > > }
      > >
      > >
      > >
      > > where instead of tooltip you would put the field name you gave it
      > in the DataSource.
      > >
      > > ----- Original Message -----
      > >
      > > From: Nagasamudram, Prasanna Kumar
      > >
      > > To: ydn-javascript@yahoogroups.com
      > >
      > > Sent: Tuesday, August 28, 2007 2:18 PM
      > >
      > > Subject: RE: [ydn-javascript] Tooltoip to the datatable...
      > >
      > >
      > >
      > > Hi Satyam
      > >
      > >
      > >
      > > My formatter function is
      > >
      > >
      > >
      > > function addTooltip(elCell, oRecord, oColumn, oData)
      > >
      > > {
      > >
      > > elCell.title="ABCD"; รง some common text
      > >
      > > elCell.innerHTML = oData;
      > >
      > > }
      > >
      > >
      > >
      > >
      > >
      > > But this will not solve my purpose, since the tool tip text will
      > be different for different cells.
      > >
      > >
      > >
      > > Thanks
      > >
      > > Prasanna
      > >
      > >
      > >
      > >
      > >
      >
      ----------------------------------------------------------------------------
      > >
      > > From: ydn-javascript@yahoogroups.com
      > [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Satyam
      > > Sent: Monday, August 27, 2007 1:00 PM
      > > To: ydn-javascript@yahoogroups.com
      > > Subject: Re: [ydn-javascript] Tooltoip to the datatable...
      > >
      > >
      > >
      > > You would need to define a formatter function for that column.
      > One of the arguments that the formatter function receives is a
      > reference to the cell. Set the title attribute for the cell to get
      > the tooltip and set the innerHTML property of that same cell to the
      > oData argument value. You also receive the whole record as an
      > argument so you can use any of the other fields in the record to
      > assemble the tooltip.
      > >
      > >
      > >
      > > Satyam
      > >
      > >
      > >
      > > ----- Original Message -----
      > >
      > > From: Nagasamudram, Prasanna Kumar
      > >
      > > To: ydn-javascript@yahoogroups.com
      > >
      > > Sent: Monday, August 27, 2007 9:07 AM
      > >
      > > Subject: [ydn-javascript] Tooltoip to the datatable...
      > >
      > >
      > >
      > > Hi All
      > >
      > >
      > >
      > > My requirement is to create a data table and add a tooltip to
      > each cell (with different text).
      > >
      > >
      > >
      > > Can somebody point me to an example on how to add a tooltip to
      > the data table ?
      > >
      > >
      > >
      > > (FYI.. I'm able to create a data table , but how to add a
      > tooltip to it is something which im looking for ).
      > >
      > >
      > >
      > > Thanks
      > >
      > > Prasanna
      > >
      > >
      > >
      >
      --------------------------------------------------------------------------
      > >
      > > size=2 width="100%" align=center>
      > >
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.484 / Virus Database: 269.12.9/975 - Release
      > Date: 26/08/2007 21:34
      > >
      > > size=2 width="100%" align=center>
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.484 / Virus Database: 269.12.10/976 - Release Date:
      > 27/08/2007 18:20
      > >
      > >
      > >
      > >
      > >
      >
      ------------------------------------------------------------------------------
      > >
      > >
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.484 / Virus Database: 269.12.10/976 - Release Date:
      > 27/08/2007 18:20
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.