Interest in ColReorderWithResize.js

Interest in ColReorderWithResize.js

jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

Hello,

I spent a couple of days and updated the ColReorderWithResize.js plugin to incorporate the latest code from the ColReorder.js plugin, so it now works with the latest version of dataTables. I also fixed various bugs that plagued the old ColReorderWithResize.js plugin.

I would like to contribute this updated version of the plugin to the official dataTables github.

Is there any interest in this? If yes, what's the proper way to contribute?

Thanks,
Jeff W.

Replies

  • gyrocodegyrocode Posts: 92Questions: 5Answers: 24

    Just curious, is there a demo page to see it in action?

    Also there is already ColReorder extension even though it doesn't support resizing yet.

    Maybe it would make sense to have a separate ColResize extension, like this one.


    See more articles about jQuery DataTables on gyrocode.com.

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0
    edited June 7

    I don't have a demo page for you. There was an (un)official thrid-party plugin called ColReorderWithResize.js which was abandoned years ago, presumably because it had issues. Consequently, it doesn't work with dataTables 1.10.x+.

    The ColReorderWithResize plugin was originally based on the ColReorder plugin.
    What I did was update ColReorderWithResize.js with the latest code from ColReorder.js and then refactored the additional code that makes resizing work to fix long-standing bugs in said plugin.

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

    I hadn't seen the ColResize extension. I just tried it out, and it seems like it has some of the same issues that the original ColReorderWithResize extension had, one of which is that you can drag a column header to the left and that it will allow that header to expand past what the body column can do because of fixed width data in the neighbor td.

  • gyrocodegyrocode Posts: 92Questions: 5Answers: 24

    Can you please share a link to the repository with updated ColReorderWithResize.js extension? I would be curious to test it.


    See more articles about jQuery DataTables on gyrocode.com.

  • IamcodingIamcoding Posts: 2Questions: 0Answers: 0

    @jeffreydwalter
    I have been trying to fix the ColReorderWithResize.js from last 2 days.
    It is not working with fixed columns.
    Would you please share a link to updated ColReorderWithResize.js ?

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

    I will share the library soon. I wrote the code to fix it as part of a commercial product, and it is going through legal so I can contribute it back.

  • IamcodingIamcoding Posts: 2Questions: 0Answers: 0

    @jeffreydwalter Thank you

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

    @Iamcoding I FINALLY got permission to open-source my changes. Here's my github repo.

    The plugin is not perfect, but hopefully it'll be good enough to maintain and build on.

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0
    edited October 24

    @Iamcoding I renamed the repo, so use this link. (Edit: Just checked the original link, and it actually still works.)

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0
  • gyrocodegyrocode Posts: 92Questions: 5Answers: 24

    @jeffreydwalter Thanks for sharing the code, very much appreciated. Posted a review for my readers, please see jQuery DataTables: Column reordering and resizing.


    See more articles about jQuery DataTables on gyrocode.com.

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

    @gyrocode awesome write-up! Thanks for the mention.

  • gyrocodegyrocode Posts: 92Questions: 5Answers: 24

    @jeffreydwalter I may be updating the article with more details, however I could not make your plug-in work together with FixedColumn plug-in. Did you use your plug-in with FixedColumn?

  • jeffreydwalterjeffreydwalter Posts: 10Questions: 0Answers: 0

    @gyrocode I did not. File a bug at the github and I'll take a look. Did the old plugin work with FixedColumn?

Sign In or Register to comment.