Setting focus on a node

4 posts, 1 answers
  1. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 29 Nov 2010 Link to this post

    I want to set focus on a node in RadSiteMap. I handle the NodeDataBound event, detect the node and call node.Focus(). Nevertheless the focus doesn't get set.
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Dec 2010 Link to this post

    Hi Eliyahu,

    I'm sorry for the late reply.

    I suggest you try the following approach - it works at our side:

    RadSiteMapNode node = RadSiteMap1.Nodes[0].Nodes[0];
    node.CssClass = "focused";
     
    string scriptstring = "$telerik.$('.focused .rsmLink')[0].focus();";
    ScriptManager.RegisterStartupScript(this, this.GetType(), "clientScript", scriptstring, true);


    Greetings,
    Yana
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 07 Dec 2010 Link to this post

    Although it looks like a hack, it does work, thanks. But you definitely should make it possible in a more civilized way.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 07 Dec 2010 Link to this post

    Hi Eliyahu,

    Thank you for your feedback, the suggestion will be considered.

    All the best,
    Yana
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top