Welcome Guest Search | Active Topics | Sign In | Register

Tabstrip: how to force a save before Options
rosarke
Posted: Monday, September 24, 2007 11:19:00 AM
Rank: Newbie
Groups: Member

Joined: 7/27/2007
Posts: 8
Is there a way to force a save (so that when a user clicks on another tab the save occurs) before allowing the user to navigate to the next tab? We need this functionality for a ASP .NET app, with C#

Thanks
eo_support
Posted: Monday, September 24, 2007 11:22:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You need to set RaisesServerEvent to true.

Thanks
rosarke
Posted: Wednesday, September 26, 2007 7:37:56 AM
Rank: Newbie
Groups: Member

Joined: 7/27/2007
Posts: 8
Yes, we had set this property as below:

<eo:TabStrip ID="TabStrip1" MultiPageID="MultiPage1" runat="server" Width="700px" ControlSkinID="None" RaisesServerEvent="True" OnItemClick="TabStrip1_ItemClick1" MultiRow="True" RowSpacing="-1">

When I am on TABA and clicked on TABB the "TabStrip1_ItemClick1" is fired in that
TabStrip1.SelectedIndex will give the selected tab (TABB) index, but is there a way
to know from which Tab this is clicked (In this case I clicked from TABA), so that to save (TABA) data.


eo_support
Posted: Wednesday, September 26, 2007 7:41:22 AM
Rank: Administration
Groups: Administration

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

The TabStrip does not tell you the previous selected index. You will need to handle that by yourself. One way to do it is by storing the previous selected index in view state and fetch it later.

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.