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

Setting focus on a node

3 Answers 44 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
Eliyahu Goldin
Top achievements
Rank 1
Eliyahu Goldin asked on 29 Nov 2010, 08:49 PM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 03 Dec 2010, 10:42 AM
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.
0
Eliyahu Goldin
Top achievements
Rank 1
answered on 07 Dec 2010, 10:23 AM
Although it looks like a hack, it does work, thanks. But you definitely should make it possible in a more civilized way.
0
Yana
Telerik team
answered on 07 Dec 2010, 10:43 AM
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.
Tags
SiteMap
Asked by
Eliyahu Goldin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Eliyahu Goldin
Top achievements
Rank 1
Share this question
or