Welcome Guest Search | Active Topics | Sign In | Register

TabStirp Client Side Events Options
Eyal
Posted: Monday, November 26, 2007 6:32:49 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2007
Posts: 8
Hi,

I'm using the 'ClientSideOnItemClick' attribute of the TabStrip to call a local JavaScript function.
Within this function I want to check if the clicked TabItem is already the SelectedItem. In case it is, I would cancel the event using eo_CancelEvent() and prevent the server-side.

Could you please provide an example of JavaScript function for that.

Unfortunately, I couldn't find much useful documentation about client-side event handling (only here and one sample in the TabStrip docs).

Many thanks!

Eyal
eo_support
Posted: Monday, November 26, 2007 6:40:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,086
Hi Eyal,

You can do this:

Code: JavaScript
function on_tab_item_click(e, info)
{
    if (info.getItem().getSelected())
        eo_CancelEvent();
}


Thanks
Eyal
Posted: Monday, November 26, 2007 6:44:31 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2007
Posts: 8
Thanks a lot for the quick response!

Eyal


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.