> a sequence of columns would always work, though it would certainly be more
> time consuming than merely setting the row order.
>
> An option, or at least a method, to specify the entire sort info would be
> possible. I'll see about adding that.
>
> On Thu, Sep 24, 2015
Here's an improved version:
http://jsfiddle.net/p96x6pxz/2/
It maintains entire sort state (not just the last sort) and selection state
across redraws.
David
On Fri, Aug 28, 2015 at 9:20 PM, David Manz <superm...@gmail.com> wrote:
> Daniel,
>
> Thank you for your guidan
I have a table with multiple sortable columns and dynamic data. When the
data in the table is updated, I need to redraw the table, and I would like
to maintain the sort state across the redraw. However, it appears to me
that there is no way to do this without actually modifying the order of
DataTable. This would be doing all the work that you will have to do
yourself currently, so if you end up doing that, post your code, and maybe
we will be able to use it.
On Fri, Aug 28, 2015 at 10:02 AM, David Manz superm...@gmail.com wrote:
I have a table with multiple sortable columns
I had the same problem, and I have a solution. I had a table with a select
handler and links that I wanted to open up in new windows without
triggering the select handler or altering the selection.
I was seeing the problem where the link was not receiving the click. This
was because my table
,
the window does not return to its previous scroll position.
I am going to try coming up with a workaround that involves wrapping the
table in an element that will hold the place for the table while it
disappears and is redrawn.
On Monday, August 3, 2015 at 5:59:04 PM UTC-5, David Manz wrote
Here's my example modified with the workaround. I just wrap the table with
another div and set its height be to the same of the table's height once
the table has been rendered.
https://jsfiddle.net/eg9a6noy/
Problem solved.
On Tuesday, August 4, 2015 at 10:02:45 AM UTC-5, David Manz wrote
Riccardo,
I modified your example to illustrate a similar problem that I have been
having. The main differences are that I am using a Table, I am reusing the
Table and DataTable instead of starting anew each time I redraw, and I am
redrawing in response to the click of a link instead of an