jQuery UI Widgets Forums Grid Scrolling in pageable Grid

This topic contains 5 replies, has 3 voices, and was last updated by  juanslingerASAP 8 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Scrolling in pageable Grid #46064

    matzep94
    Participant

    Hi,

    in my grid has fix height but needs autorowheight so i turned on pageable – my problem is now that scrolling is not working
    and when I execute ensurerowvisible it returns false! – and the row is not visible

    The Grid:

    $("#gridid").jqxGrid({
    	width : "100%",
    	height : 800,
    	source : data_adapter,
    	columnsresize : true,
    	showemptyrow: false, 
    	theme : "metro",
    	pageable: true,
    	pagerheight: 0,
    	autorowheight: true,
    	columns : columns
    });

    Scrolling:

    grid_jquery_object.jqxGrid("selectrow", newIndex);
    grid_jquery_object.jqxGrid("ensurerowvisible", newIndex);
    • This topic was modified 10 years, 7 months ago by  matzep94.
    Scrolling in pageable Grid #46075

    Peter Stoev
    Keymaster

    Hi matzep94,

    pagerheight should not be set to 0 when you have enabled Paging.In addition, the provided information is not sufficient for testing your scenario.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Scrolling in pageable Grid #46087

    matzep94
    Participant

    The problem is that I have that I need a Grid which rows hava various linecounts for example one have one line a another has 3 lines
    This grid should have a fix height and i want to scroll through the selection with buttons

    how can I make this then without set paging to true??

    Scrolling in pageable Grid #46088

    Peter Stoev
    Keymaster

    Hi matzep94,

    “autorowheight” is supported only in Pageable mode or when “autoheight” is set to true which means that the only option for your scenario is to have a Pageable Grid, but that means also that you will have a Pager that will allow your users to change the page number.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Scrolling in pageable Grid #46103

    matzep94
    Participant

    Now the Grid Looks so :

    $("#"+this.GRID_DIV_SHIFTINFO_ID).jqxGrid({
    width : "100%", height : 800, source : data_adapter, columnsresize : true, 
    showemptyrow: false, theme : "metro", pageable: true, autorowheight: true, columns : columns
    });

    but ensurerowvisible still not works

    Scrolling in pageable Grid #80865

    juanslingerASAP
    Participant

    Hello,

    I’m having a strange scenario. First I initialize the grid and after I get all data for the grid. I’m using pageable, but when I change page size from one page size to a bigger one, new “page render” just scroll to rows for before’s page size.

    Example, if I change from page size 50 to 100, I start scrolling and data freezes on row 50.

    Also just in case it helps, I’m setting height to the grid.

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

You must be logged in to reply to this topic.