jQWidgets Forums

jQuery UI Widgets Forums Grid grid scroll valuechanged event

This topic contains 2 replies, has 2 voices, and was last updated by  dpibt 11 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • grid scroll valuechanged event #49327

    dpibt
    Participant

    Hello,

    I’m trying to know when the scroll gets the bottom limit of the grid to make sure the user has ‘seen’ all rows in the grid. My approach is to get the scrollbar in the grid and get it’s instance to override the valuechanged event.

    this.verticalScrollBar = $('#'+this.id).find("#verticalScrollBar" + this.id);
    var vScrollInstance = $.data(this.verticalScrollBar[0], 'jqxScrollBar').instance;
    vScrollInstance.valuechanged = function(event){
        var currentValue = event.currentValue; 
        var previousValue = event.previousvalue;
        console.log('currentValue', currentValue, 'previousValue',previousValue);
    };
    

    the problem is that the grid already defines the valuechanged for its scrollbars so doing this disables table scrolling.

    My questions are, is there any other way to achieve my goal wich doesn’t need to override this method? Are you going to add any kind of scroll events to the grid itself in a near future?

    Thank you very much

    grid scroll valuechanged event #49328

    Peter Stoev
    Keymaster

    Hi dpibt

    Sorry, but we cannot help you about using internal API. It is not possible to listen to scroll value changes in jqxGrid. Please, also avoid posting code here or anywhere else from the original source code according to the EULA. For now, we do not plan to add such event(s) or callback functions in the future.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    grid scroll valuechanged event #49352

    dpibt
    Participant

    Ok, sorry for posting the code. I will have EULA in mind when posting code.

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

You must be logged in to reply to this topic.