Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Setting focus on a node

Answered Setting focus on a node

Feed from this thread
  • Eliyahu Goldin avatar

    Posted on Nov 29, 2010 (permalink)

    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.

    Reply

  • Answer Yana Yana admin's avatar

    Posted on Dec 3, 2010 (permalink)

    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.

    Reply

  • Eliyahu Goldin avatar

    Posted on Dec 7, 2010 (permalink)

    Although it looks like a hack, it does work, thanks. But you definitely should make it possible in a more civilized way.

    Reply

  • Yana Yana admin's avatar

    Posted on Dec 7, 2010 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Setting focus on a node