@fgeorgejr

@fgeorgejr

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: List of Columns in their current order #101591
    fgeorgejr
    Member

    I get the exact same thing (in developer tools upon variable inspection).  So, the problem is not catchable in dev tools in the browser.
    But, if you run a for loop and try to use that data, you will get a stale version of it, unless I’m doing something wrong. For example, how would you extract the strings from that columns array at the end of the columsdragged event?  I have done this several times and I always get stale and outdated state of the strings in their original order.  I gather that you will get the same result if you run the code I printed in the second post. Please advise.

    in reply to: List of Columns in their current order #101585
    fgeorgejr
    Member

    Also, I noticed that I always get stale data that is not up to date when I try something like:
    grid.columns.toArray().forEach(function(element) {
    console.log(element.visibleIndex + element.dataField);
    });
     
    So, what could be the proper way to do this? Any help is much appreciated.

Viewing 2 posts - 1 through 2 (of 2 total)