jQuery UI Widgets Forums Lists ListBox Disable arrows

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Disable arrows #974

    DPolyakov
    Blocked

    Hello.

    I need disable and hide arrow-up and arrow-down in vertical scrollbar.
    How can i do this?

    Disable arrows #975

    Peter Stoev
    Keymaster

    Hi DPolyakov,

    Thank you for contacting us.

    You can disable the arrow-up and arrow-down scroll buttons using the code example below:

    // Create a jqxListBox
    $("#jqxWidget").jqxListBox({ source: source, width: '200', height: '250px', theme: theme });
    // get vertical scrollbar.
    var vScrollBar = $("#jqxWidget").find('#verticalScrollBar');
    // disable scroll buttons.
    vScrollBar.find('#jqxScrollBtnDown').attr('disabled', true);
    vScrollBar.find('#jqxScrollBtnUp').attr('disabled', true);

    The scrollbar does not currently support hiding of the scroll buttons so that the user can drag the thumb in the whole scroll area. We will do our best to implement this feature for the upcoming release which will be available in the next week.

    Best Regards,
    Peter Stoev

    Disable arrows #1010

    Peter Stoev
    Keymaster

    Hi DPolyakov,

    We just released the second major version of jQWidgets and as promised, we implemented a feature which allows you to hide the scrollbar buttons.

    Below is the code which you can use in the new version:

    // Create a jqxListBox
    $("#jqxWidget").jqxListBox({ source: source, width: '200', height: '250px', theme: theme });
    // find vertical scrollbar.
    var vScrollBar = $("#jqxWidget").find('#verticalScrollBar');
    // hide buttons and refresh the scrollbar.
    vScrollBar.jqxScrollBar({ showButtons: false });
    vScrollBar.jqxScrollBar('refresh');

    Best Regards,
    Peter Stoev

    Disable arrows #1043

    DPolyakov
    Blocked

    Thank you!! It`s cool!

    p.s. Are you from Russia

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

You must be logged in to reply to this topic.