Welcome Guest Search | Active Topics | Sign In | Register

Tabstrip Malfunction Options
Samuele
Posted: Wednesday, June 13, 2007 11:51:43 AM
Rank: Advanced Member
Groups: Member

Joined: 5/31/2007
Posts: 58
Hi,

i've installed the last version of dll (2007.1.15) and before i don't have this problem..
i've a Tabstrip with sub menu, three voice in Top and some sub-voice for each Top Voice.
I've set "selected = true" to first sub-voice for each Top Voice..
When the application start the "SelectedIndex" of the Tabstrip is 1 but when i press on other Top Voice the "SelectedIndex" is -1 and if i press on sub-voice then "SelectedIndex" change value.

Thanks
Samuele
eo_support
Posted: Wednesday, June 13, 2007 11:55:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for posting the issue here. We will look into it and see what we can find.
eo_support
Posted: Wednesday, June 13, 2007 1:02:22 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Samuele,

We are unable to reproduce the problem at here. Would you be able to post a sample project that demonstrate the problem?

Thanks
Samuele
Posted: Friday, June 15, 2007 3:11:11 PM
Rank: Advanced Member
Groups: Member

Joined: 5/31/2007
Posts: 58
hi,

the ID of tabstrip is TS

Tab 1 | Tab 2 | Tab 3
T1C1 T1C2

I've set TS.SelectedIndex = 0 of default..
if i press on Tab 2

Tab 1 | Tab 2 | Tab 3
T2C1 T2C1

the TS.SelectedIndex is still equal to 0
if i press on T2C1 then TS.SelectedIndex become equal to 1

Thanks
eo_support
Posted: Saturday, June 16, 2007 9:07:07 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi Samuele,

We tried this:

1. The TabStrip's SelectedIndex is initially set to 0;
2. The TabStrip's RasiesServer event is set to true;
3. Inside the TabStrip's ItemClick event we print out the TabStrip's SelectedIndex;

As long as we click Tab 2, ItemClick is fired and we see SelectedIndex as 1.

So there must be something that you are doing differently than us, without seeing your code we won't be able to tell what the difference is. So please either attach a sample project or a your .cs/vb along with your .aspx file. If you don't feel comfortable posting in the forum, please pm us.

Thanks

Samuele
Posted: Sunday, June 17, 2007 3:55:44 AM
Rank: Advanced Member
Groups: Member

Joined: 5/31/2007
Posts: 58
Hi.. Try this

HTML:

Code: HTML/ASPX
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>WebForm1</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<eo:TabStrip id="TabStrip1" runat="server" SelectedIndex="0" ControlSkinID="None" RaisesServerEvent="True">
				<TopGroup>
					<Items>
						<eo:TabItem Selected="True" Text-Html="Themes">
							<SubGroup>
								<Items>
									<eo:TabItem Selected="True" Text-Html="Winows XP"></eo:TabItem>
									<eo:TabItem Text-Html="Windows Classic"></eo:TabItem>
								</Items>
							</SubGroup>
						</eo:TabItem>
						<eo:TabItem Text-Html="Desktop">
							<SubGroup>
								<Items>
									<eo:TabItem Selected="True" Text-Html="Background"></eo:TabItem>
									<eo:TabItem Text-Html="Customize"></eo:TabItem>
								</Items>
							</SubGroup>
						</eo:TabItem>
						<eo:TabItem Text-Html="Screen Saver">
							<SubGroup>
								<Items>
									<eo:TabItem Selected="True" Text-Html="None"></eo:TabItem>
									<eo:TabItem Text-Html="3D Text"></eo:TabItem>
								</Items>
							</SubGroup>
						</eo:TabItem>
					</Items>
				</TopGroup>
				<LookItems>
					<eo:TabItem ItemID="_TopGroup">
						<SubGroup Style-CssText="background-image:url(00010220);background-repeat:repeat-x;cursor:hand;font-family:tahoma;font-size:8pt;"
							OverlapDepth="8"></SubGroup>
					</eo:TabItem>
					<eo:TabItem ItemID="_TopLevelItem" RightIcon-Url="00010223" RightIcon-SelectedUrl="00010226"
						NormalStyle-CssText="color: #606060" SelectedStyle-CssText="color:#2f4761;font-weight:bold;"
						LeftIcon-Url="00010221" LeftIcon-SelectedUrl="00010224" Image-Url="00010222" Image-SelectedUrl="00010225"
						Image-Mode="TextBackground" Image-BackgroundRepeat="RepeatX">
						<SubGroup Style-CssText="background-image:url(00010220);background-position-y:bottom;background-repeat:repeat-x;cursor:hand;font-family:tahoma;font-size:8pt;padding-bottom:4px;padding-left:5px;padding-right:5px;padding-top:4px;"
							ItemSpacing="5"></SubGroup>
					</eo:TabItem>
					<eo:TabItem HoverStyle-CssText="color:#2f4761;text-decoration:underline;" ItemID="_Default"
						NormalStyle-CssText="color: #606060; text-decoration: none" SelectedStyle-CssText="color:#2f4761;font-weight:bold;">
						<SubGroup Style-CssText="background-image:url(00010220);background-position-y:bottom;background-repeat:repeat-x;cursor:hand;font-family:tahoma;font-size:8pt;padding-bottom:4px;padding-left:5px;padding-right:5px;padding-top:4px;"
							ItemSpacing="5"></SubGroup>
					</eo:TabItem>
				</LookItems>
			</eo:TabStrip>
			<asp:Label id="Label1" runat="server">Label</asp:Label>
		</form>
	</body>
</HTML>


CODE:

Code: Visual Basic.NET
Public Class WebForm1
    Inherits System.Web.UI.Page

#Region " Codice generato da Progettazione Web Form "

    'Chiamata richiesta da Progettazione Web Form.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents TabStrip1 As EO.Web.TabStrip
    Protected WithEvents Label1 As System.Web.UI.WebControls.Label

    'NOTA: la seguente dichiarazione è richiesta da Progettazione Web Form.
    'Non spostarla o rimuoverla.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: questa chiamata al metodo è richiesta da Progettazione Web Form.
        'Non modificarla nell'editor del codice.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Label1.Text = TabStrip1.SelectedIndex
    End Sub

End Class


When you press on "Desktop" tab selectedindex is alway 0
Thanks
eo_support
Posted: Sunday, June 17, 2007 9:21:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for the reproducing code. The issue is now fixed. Please see your private message for download location for the new build.


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.