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

DropDownList in Tab Template

2 Answers 59 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
alo
Top achievements
Rank 1
alo asked on 23 Jun 2011, 05:23 AM
How can I capture the SelectedIndexChanged event on the server side for a DropDownList within a Tab Template?  The event does not seem to fire.  I've found some similar posts for other controls, but I can't seem to make any sense out of this.

I would appreciate your help.

Al

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Jun 2011, 02:05 PM
Hello Alo,

I have tried to replicate the issue but no avail. Have you set the AutoPostBack property to true? Here is the aspx which I tried.
aspx:
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="" MultiPageID="RadMultiPage1"
            SelectedIndex="0" EnableEmbeddedSkins="false">
     <TabTemplate>
                <asp:DropDownList ID="DropDown1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDown1_SelectedIndexChanged">
                    <asp:ListItem Text="Text1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Text2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Text3" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Text4" Value="4"></asp:ListItem>
                    <asp:ListItem Text="Text5" Value="5"></asp:ListItem>
                </asp:DropDownList>
      </TabTemplate>
      <Tabs>
                <telerik:RadTab runat="server" Width="50px" Height="46px" CssClass="activeCourses"
                    SelectedCssClass="activeCoursesSelected" Selected="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Width="50px" Height="46px" CssClass="inactiveCourses"
                    SelectedCssClass="inactiveCoursesSelected">
                </telerik:RadTab>
      </Tabs>
</telerik:RadTabStrip>

Thanks,
Shinu.
0
alo
Top achievements
Rank 1
answered on 23 Jun 2011, 02:43 PM
I did not have the AutoPostBack property set to true.

Thanks for your help,

Al
Tags
TabStrip
Asked by
alo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
alo
Top achievements
Rank 1
Share this question
or