"Javascript on scrollbars of RadList Box "

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 09 Feb 2010 Link to this post

    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.
      
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 12 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top