MAJOR BUG (ColReorder) *UPDATED ColReorderWithResize.js inside*
MAJOR BUG (ColReorder) *UPDATED ColReorderWithResize.js inside*
Alltor
Posts: 7Questions: 0Answers: 0
I'M POSTING THIS BECAUSE IT AFFECTS EVERY SINGLE ONE OF YOUR CUSTOMERS.
When you go to ANY ColReorder example page, take this one:
http://datatables.net/release-datatables/extras/ColReorder/index.html
When you move a column and then click on the new column to sort it, it sorts the column it was in before instead of the new one.
When you do this a couple times with other columns you can see the bug getting worse..
So, any fixes?
---------------------
SIDE BUG(S):
Table Tools doesn't work when you're using both one of your skins and ColReorder.
When you go to ANY ColReorder example page, take this one:
http://datatables.net/release-datatables/extras/ColReorder/index.html
When you move a column and then click on the new column to sort it, it sorts the column it was in before instead of the new one.
When you do this a couple times with other columns you can see the bug getting worse..
So, any fixes?
---------------------
SIDE BUG(S):
Table Tools doesn't work when you're using both one of your skins and ColReorder.
This discussion has been closed.
Replies
Yes - use the 1.0.7.dev version of ColReorder: http://datatables.net/download/ . I'll be packaging up a new release soon.
Allan
Allan
Here is the new updated version of ColReorder with resizing: [retracted]
You can see it in action on my page here: [retracted]
btw, in one of the sections I combined your code from line 277 of 1.0.7 with line 292 of ColReorderWithResize 1.0.5 in my new version of ColReorderWithResize 1.0.7 below:
[code]
/*
* Any extra operations for the other plug-ins
*/
if ( typeof ColVis != 'undefined' )
{
ColVis.fnRebuild( oSettings.oInstance );
}
/* Fire an event so other plug-ins can update */
$(oSettings.oInstance).trigger( 'column-reorder', [ oSettings, {
"iFrom": iFrom,
"iTo": iTo,
"aiInvertMapping": aiInvertMapping
} ] );
[/code]
If you plan on fixing the following later let me know:
[quote]Will you be making FixedHeader compatible with the skins or is that out of the question? And can you make TableTools compatible with ColReorder/ColReorderWithResize when using a skin? Thanks once again.[/quote]
Does FixedHeader not work with jQuery UI ThemeRoller already (which is what I presume you mean by skins)? Also TableTools should be fully compatible with ThemeRoller already.
Allan
I have the code below running here if you want to try clicking on the buttons and seeing that they don't work: [retracted]
I put it in an image because Vanilla keeps flagging it I guess because of the js code but you can access it using Ctrl+U on the page above in Firefox. [Retracted]
> I have the code below running here if you want to try clicking on the buttons and seeing that they don't work: [retracted]
If you have a look at the console in your browser, or your server error log, you'll see the SWF file is failing to load. You might need to specify the sSwfPath parameter to point to where the file actually is.
Allan
How did you look at the "console", is that built in--or where did you see the server error log? This would help me a lot! Thanks once again!
And one small question, how do you minify your js files? I'd like to minify some codes I have in js and if there's anyone who knows what to do it'd be you!
This was a perfect example of how Karma works, we help one another, we help ourselves, we help all! You rock man, I'm going to give you a really special credit on the front page once I'm all done with the site. And once my registrations start rolling in, you will be sure to get a very special weekly donation :-)!
I knew it would be in the error error log from experience (your server error log is not exposed publicly - that would be bad!).
To get the console - if you are using Chrome:
View > Developer > Javascript console
Firefox:
Open Firebug (install Firebug if not already installed and then click the Firebug icon)
Other browsers have options (DragonFly in Opera, Inspector in Safari, Dev Tools in IE etc as well).
> And one small question, how do you minify your js files?
I use Closure Compiler for the DataTables files:
https://developers.google.com/closure/compiler/
There are loads of other options out there as well: YUI compiler, UglifyJS, JSmin etc, but I like the compression and options Closure compiler gives.
Allan (karma satisfied :-) )
Do you know if there's something I'm missing to get FixedHeader working on my page correctly? Right now it just doubles the header which doesn't move when I use ColReorder: [retracted]
And I don't see any errors with Firebug. Thanks.
FixedHeader and ColReorder should play nicely together: http://datatables.net/release-datatables/extras/ColReorder/fixedheader.html
Allan