DropDownList in Tab Template

3 posts, 1 answers
  1. alo
    alo avatar
    53 posts
    Member since:
    Jan 2009

    Posted 23 Jun 2011 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jun 2011 Link to this post

    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.
  3. alo
    alo avatar
    53 posts
    Member since:
    Jan 2009

    Posted 23 Jun 2011 Link to this post

    I did not have the AutoPostBack property set to true.

    Thanks for your help,

    Al
Back to Top