Welcome Guest Search | Active Topics | Sign In | Register

Disable Toolbar item in javascript Options
Daren Baker
Posted: Sunday, June 22, 2008 4:07:09 AM
Rank: Newbie
Groups: Member

Joined: 6/17/2008
Posts: 2
I want to disable a toolbar item through javascript when a tabstrip item is clicked.

so far I have

function TabStripClick(e, eventInfo)
{

var toolbar = eo_GetObject('<%=ToolBar1.ClientID%>');

missing code .setDisabled(true)
}

but I am missing the rest.
eo_support
Posted: Sunday, June 22, 2008 10:18:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Hi,

It would be:

toolbar.getItem(index).setDisabled(true);

Or:

toolbar.getItems()[index].setDisabled(true);

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.