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

37061Re: dispatcher, yui tabview, yui datatable

Expand Messages
  • Caridy Patino
    Sep 2, 2008
    • 0 Attachment
      Hello norman:

      If you use this:

      YAHOO.util.onDOMReady(function(){
      // Render the datatable
      });

      It should work, because the dispatcher plugin wrap the loading
      process, setting the innerHTML and executing the scripts within the
      onSuccess method for the tabview control, and using the onDOMReady
      trick you will delay the render of the datatable at least 1ms, or you
      can use a timer trick as well:

      window.setTimeout (function(){
      // Render the datatable
      }, 1);

      Best Regards,
      Caridy Patino (caridy at yahoo-inc.com)
      Yahoo! LATAM

      --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
      >
      > The 2.5.x versions of DataTable don't render correctly in hidden
      > containers. That should be fixed for 2.6.0.
      >
      > normanK wrote:
      > > hello,
      > >
      > > i am using the YUI Tabview,with two tabs attached. The dataSrc of
      the first
      > > tab is a page that creates a YUI datatable plus it includes the
      page that is
      > > used as dataSrc for the second tab. That page also creates a
      datatable. The
      > > first tab is set to active and both datatables are working fine.(using
      > > YAHOO.plugin.Dispatcher.delegate () to make the scripts
      execute).Now when
      > > switching to the second tab the datatable is not getting rendered
      for some
      > > reason, despite the fact that it worked on the first tab. I
      disabled loading
      > > the page for tab2 on tab 1 and when i switch tabs the datatable is
      rendered
      > > on tab2. Any ideas for this behaviour? Sorry for not posting any
      source
      > > code, i guess i am not allowed to.
      > >
      > > cheers
      > > norman
      > >
      > >
      ------------------------------------------------------------------------
      > >
      > >
      > > No virus found in this incoming message.
      > > Checked by AVG - http://www.avg.com
      > > Version: 8.0.169 / Virus Database: 270.6.14/1645 - Release Date:
      01/09/2008 7:19
      > >
      > >
      >
    • Show all 6 messages in this topic