This is a migrated thread and some comments may be shown as answers.

"Javascript on scrollbars of RadList Box "

1 Answer 51 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 09 Feb 2010, 10:04 AM
HI,
      I am using  a RadList box .
      When the Item in the list box gets changed by scrolling I want to fill a grid.I can achiev this by clicking the item in the list box.
      But , I want to do it on scrollbar changed event of list box .I jsut  want to fire a javascript on Scrollbar click event of a radlist box.
      Is this possible? Please suggest me a solution for the same.
Thanks.
  

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 12 Feb 2010, 12:04 PM
Hi Rahul Khinvasara,

You can use the following code to attach to hook on the scroll event:

function pageLoad() {
            var listBox = $find("RadListBox1");
            $(".rlbGroup", listBox.get_element())
                .scroll(function(e) {
                    alert("I have been scrolled");
                });
        }

Unfortunately there is a problem under Internet Explorer. The scroll event is fired multiple times per scroll whereas in all other browsers it is called only once. Unfortunately there is no workaround for this issue, this is the way IE works. I have attached sample project that demonstrates the approach.

Kind regards,
Genady Sergeev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ListBox
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or