jQWidgets Forums

jQuery UI Widgets Forums Grid Does 'ensurerowvisible' work with grouped rows?

This topic contains 3 replies, has 2 voices, and was last updated by  alastairwalker 9 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • alastairwalker
    Participant

    I am using a groups rows situation, with three levels of grouping.

    I have found that the method ‘ensurerowvisible’ works well with ‘groupable’ set to false (i.e. inactive).

    If ‘groupable’ is set to true (and a couple of groups set up), then the ‘ensurerowvisible’ method seems to have no effect on adjusting the sidebar to make the selected row visible.

    Do you have any guidance or remarks on this?

    Best regards,

    Alastair


    alastairwalker
    Participant

    Oops! Wrong category – should be under ‘Grid’!

    Admin – can you move this topic to Grid?

    Alastair


    ivailo
    Participant

    Hi alastairwalker,

    ‘ensurerowvisible’ method works well with grouped rows.
    Probably you are confused cause after grouping the rows are reorganized and your row is in group in visible area.
    That make it “visible” for this method(if it’s parent groups are collapsed and visible).

    For example try this demo.
    When you click the button, probably nothing will happen, cause the row 500 is in visible group.
    So try to expand some groups and again click the button. ‘ensurerowvisible’ will scroll to the correct position.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com


    alastairwalker
    Participant

    That is very helpful! It solved my problem.

    Thank you very much!

    Alastair

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

You must be logged in to reply to this topic.