jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox ScrollBar and Json data Refresh

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • ScrollBar and Json data Refresh #6388

    mc
    Member

    I have scrollbar position problem after each data refresh.
    i m trying to get and save scroll bar position but i couldnt get it .
    i was using this code for jqxgrid ;

    HscrollValue = $("#jqxgrid").jqxGrid('hScrollBar').jqxScrollBar('value');

    But i couldnt write correct code for combobox.I try this one ;
    ComboBox_VscrollValue = $("#combobox").jqxComboBox('listBox').jqxListBox('vScrollBar').jqxScrollBar('value');
    But it is not working.
    How can i save and set old position of scroll bar for combobox?

    ScrollBar and Json data Refresh #6390

    Peter Stoev
    Keymaster

    Hi mc,

    There’s no built-in API for that. The workaround for getting the vertical scrollbar’s value is:

    var value = $("#jqxWidget").jqxComboBox('listBox').vScrollBar.jqxScrollBar('value');

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.