jQWidgets Forums

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Scroll bar Posts
  • Scroll bar #2234

    sundar
    Member

    I saw a question on the Tabs forum about how to show scroll bar using jqxPanel and jqxTabs. But it doesn’t address how to customize a scrollbar (jqxScrollBar) for a given piece of content. For example let’s say I have a paragraph of text shown in a div of certain size. And I want to use a horizontal scrollbar and also want to scroll ahead (upon loading) to a certain value. How would I go about doing that?

    Scroll bar #2245

    Peter Stoev
    Keymaster

    Hi sundar,

    You can put your content inside the jqxPanel widget as demonstrated in the jqxPanel’s Default Functionality demo. jqxPanel will automatically display horizontal or vertical scrollbars when necessary. To scroll horizontally or vertically the content in the jqxPanel, you can use its ‘scrollTo’ method.

    For example:

    $("#jqxWidget").jqxPanel('scrollTo', 5, 100);

    Best Regards,
    Peter Stoev

    http://www.jqwidgets.com
    jQWidgets Team

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

You must be logged in to reply to this topic.