- Jan 8, 2010That 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
- << Previous post in topic Next post in topic >>