jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Scrollposition on Expand Scrollposition on Expand #91719

    t.knorr
    Participant

    Same has to be done in “render” function

    in reply to: Scrollposition on Expand Scrollposition on Expand #91702

    t.knorr
    Participant
    $subtree.slideDown(me.animationShowDuration, me.easing,
        function () {
            var scrolltop = $(b.element).scrollTop();       // <---- EDITED
    
            var $arrowSpan = $(item.arrow);
                item.isExpanded = true;
                me._arrowStyle($arrowSpan, "", item.isExpanded);
                item.isExpanding = false;
                me._raiseEvent('0', { element: item.element });
                me._calculateWidth();
            }) //animate subtree into view 
    
            $(b.element).scrollTop(scrolltop);              // <---- EDITED     
    //     }, 0);
    
    $subtree.slideUp(me.animationHideDuration, function () {
        var scrolltop = $(b.element).scrollTop();       // <---- EDITED
    
        item.isCollapsing = false;
        me._calculateWidth();
        var $arrowSpan = $(item.arrow);
        me._arrowStyle($arrowSpan, "", item.isExpanded);
        $subtree.hide();
        me._raiseEvent('1', { element: item.element });
    
        $(b.element).scrollTop(scrolltop);              // <---- EDITED     
    })

    t.knorr
    Participant

    Hi Ivo,

    So you say its normal, when I just:

    this.tableDiv.jqxDataTable("sortBy", this.columns[0].datafield, "asc");
    let selection = this.tableDiv.jqxDataTable("getSelection");
    
    this.tableDiv.jqxDataTable("clearSelection");
    
    this.tableDiv.jqxDataTable('selectRow', selection[0].uid);

    The selection[0].uid is the old uid (like before the sort)

    Then a other (not the selection[0] object) will be selected now!

    How can I select the previous selection[0] object

    Best Regards,
    Thomas

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