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

Automatically deselect links that have target="_blank"

0 Answers 18 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 May 2010, 03:15 AM

I thought I'd share some javascript code that will automatically deselect a click on a link that has target="_blank" since it is a popup window.  Put in OnClientItemClicked="RadPanelBarClicked" your RadPanelBar declaration.

function
RadPanelBarClicked(sender, eventArgs) {

 

 

// Dont' select links with target.

 

 

 

var item = eventArgs.get_item();

 

 

var target = item.get_target();

 

 

if (target)

 

{

item.set_selected(

false);

 

}

}

No answers yet. Maybe you can help?

Tags
PanelBar
Asked by
John
Top achievements
Rank 1
Share this question
or