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

Re: Problem extending YUI formatters

Expand Messages
  • Reza Shahbazi
    Works fine now. Thanks Reza Shahbazi http://bract.us ... set to the DataTable, but you are not passing on that scope to the ... oData); ... 02/10/2008 7:46
    Message 1 of 3 , Oct 4, 2008
      Works fine now.

      Thanks
      Reza Shahbazi
      http://bract.us
      --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
      >
      > The problem is that your function gets called with the scope (this)
      set to the DataTable, but you are not passing on that scope to the
      called function, which it does use, and that's why it fails. Try this:
      >
      > var formatID = function() {
      >
      > YAHOO.widget.DataTable.formatNumber.apply(this,arguments);
      >
      > };
      >
      >
      >
      > Reza Shahbazi wrote:
      > > Hi All,
      > >
      > > I have problem extending number and currency formatter for YUI 2.6.0!
      > >
      > > If we have our own formatter which is calling YUI's
      > > YAHOO.widget.DataTable.formatNumber,
      > > like:
      > > formatID = function(elCell, oRecord, oColumn, oData) {
      > >
      > > YAHOO.widget.DataTable.formatNumber(elCell, oRecord, oColumn,
      oData);
      > >
      > > };
      > >
      > > then datatable.js fails
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      ------------------------------------------------------------------------
      > >
      > >
      > > No virus found in this incoming message.
      > > Checked by AVG - http://www.avg.com
      > > Version: 8.0.173 / Virus Database: 270.7.5/1703 - Release Date:
      02/10/2008 7:46
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.