TreeView scrolling with pressing spacebar

2 posts, 0 answers
  1. mirang
    mirang avatar
    115 posts
    Member since:
    Aug 2010

    Posted 23 Feb 2012 Link to this post

    I am having a radtreeview with checkboxes. I have around 5000 nodes. Now the check and uncheck works fine with enter key and mouse click. It also works with spacebar key. But when there is a scrollbar in the treeview the treeview is scrolling down on pressing spacebar key. Is this a default behavior, and any ways we can supress this.
  2. Bozhidar
    Bozhidar avatar
    1189 posts

    Posted 27 Feb 2012 Link to this post

    Hi Mirang,

    This is a browser inconsistence. Different browsers interpret the space key in different ways. For instance, when you try this in Firefox, the space key doesn't scroll to the bottom.

    To cancel this, you can try the following approach - add the following to the OnClientLoad event of the treeview:
    function clientLoad(sender) {
        $telerik.$(sender.get_element()).keydown(function(e) {
            if (e.keyCode == 32)

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top