This topic contains 3 replies, has 2 voices, and was last updated by DPolyakov 14 years ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Lists › ListBox › Disable arrows
Tagged: jQuery ListBox, jqxListBox, ListBox ScrollBar
This topic contains 3 replies, has 2 voices, and was last updated by DPolyakov 14 years ago.
Hello.
I need disable and hide arrow-up and arrow-down in vertical scrollbar.
How can i do this?
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
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
Thank you!! It`s cool!
p.s. Are you from Russia
You must be logged in to reply to this topic.