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

52329Re: [ydn-javascript] Datatable inline cell editor fails @ times

Expand Messages
  • Satyam
    Jan 8, 2010
      That is usually some initialization code that fails under certain circumstances and the DataTable doesn't get fully initialized.  

      For those mysterious errors, the steps to clean them is, run JSLint on the code and pay attention to all its warnings, even harmless unused variables might point to misspellings, you declared it one way and never used it because you used it with another name elsewhere.  All YUI code gets zero errors in JSLint and this is very large and complex code base, nevertheless, it reaches you clean of errors. 

      If you are using JSON, use JSONLint to see if it is valid.  Don't use a hand-coded JSON encoder on the server, there are some subtleties with the encoding of characters beyond the normal US-ASCII and in a particular query you get one record containing such character, it will break.

      Load -debug versions of the relevant components (DataSource, DataTable) and add a Logger to your page.  If you see any message in red, that's it.

      Install Firefox with the Firebug debugger.  Run the program with the debugger active to Break on All Errors, that's the name of the option.

      Don't trouble yourself with debugging after you cleaned it up with JSLint.   You can search for all this in the web.


      El 08/01/2010 15:29, vino ben escribió:

      In my below post ,

      what i meant by datatable renders non editable is - 

      Editable cells - do not respond to mouseover and cellClickevents

      From: vino_gallantguy <vino_gallantguy@...>
      To: ydn-javascript@yahoogroups.com
      Sent: Fri, January 8, 2010 6:26:50 PM
      Subject: [ydn-javascript] Datatable inline cell editor fails @ times



      I have a weird issue with yui datatable. I generate a datatable with editable and non editable fields.

      -> Sometimes the whole datagrid renders non editable. And now if I try a few F5s it renders fine as editable

      This is pretty baffling as I do not know where and what to debug for. Please help me out of this mess.

      I use YUI2.7 and IE7 and a scrolling datatable.

      This is how I instantiate the table :
      myDataTable = new YAHOO.widget. ScrollingDataTab le("container" , myColumnDefs, myDataSource, {width:"95%" , height:"20em" ,formatRow: myRowFormatter} );

      Is this some sort of a bug ? Has anyone faced a similar issue before?

      Please suggest.


      No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.725 / Virus Database: 270.14.129/2606 - Release Date: 01/07/10 20:35:00
    • Show all 7 messages in this topic