Fixheader With ColReorderWithResize

Fixheader With ColReorderWithResize

niravdhaminiravdhami Posts: 3Questions: 0Answers: 0
edited April 2014 in General
Hi,
I am using Data Table in my WebApplication. Now I want to use Fixed Header as well as ColReorderWithResize in the same table.
I have following code for enable Resize Columns and fixed Header.But When I resize the Column its data and Column headers are not in synchronization. How do I do that Please

var table = $('#result').dataTable({
sScrollY: '300px',
bPaginate: false,
sXInner : true,
bSort : true,
"sDom": "Rlfrtip",
});

How do I do that ?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    > ColReorderWithResize

    This plug-in is not supported and is hugely out of date and very limited. I would be very surprised if it worked with the latest DataTables.

    Allan
  • niravdhaminiravdhami Posts: 3Questions: 0Answers: 0
    Hi Allan,

    Is there any alternative solution for using Fixed Header and Column Resize both in same Datatables?

    Thanks
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    There is no official column resizing plug-in for DataTables at this time.

    Allan
  • niravdhaminiravdhami Posts: 3Questions: 0Answers: 0
    Hi Allan ,

    could you please guide me so I can able to create the plugins for the same and add it to the datatables?

    Thanks
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    There is a blog post here describing how to create feature plug-ins for DataTables: http://datatables.net/blog/Creating_feature_plug-ins . I would also suggest you browse through the source code for the existing plug-ins.

    Allan
  • dykstraddykstrad Posts: 20Questions: 0Answers: 1

    Allan the link to creating feature plug-ins is broken. Also has there been any more renewed interest in column resizing plugins that you have been aware of? Or should I start one up.

  • RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
    edited July 2014

    If anyone is still interested in this, I've added a FixedHeader support for my ColResize plugin.

    Example with default FixedHeader settings: HERE

    Example with Header & Footer: HERE

    The source code of the plugin: HERE

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    Cool - thanks for sharing it with us!

    Allan

This discussion has been closed.