Hi there,
I'm trying to control a multipage control using a combobox. I have added a tabstrip and set the multipageId and I can use the tabs to view each of the pageviews. I'm using the following code in the combobox's OnClientSelectedIndexChanged event handler.
For some reason the pageview count is 0. But I can switch between the pageviews using the tabs.
Below is the code in my ascx file:
I'm creating the tabs, pageviews, and combobox items at runtime on the server.
Any help would be appreciated.
Regards,
Mark.
I'm trying to control a multipage control using a combobox. I have added a tabstrip and set the multipageId and I can use the tabs to view each of the pageviews. I'm using the following code in the combobox's OnClientSelectedIndexChanged event handler.
function OnClientSelectedIndexChanged(sender, eventArgs) { |
var item = eventArgs.get_item(); |
var multiPage = $find("<%=RadMultiPageQuickDD.ClientID %>"); |
alert(multiPage.get_pageViews().get_count()); |
multiPage.set_selectedIndex(item.get_index()); |
} |
For some reason the pageview count is 0. But I can switch between the pageviews using the tabs.
Below is the code in my ascx file:
<asp:Panel ID="pnlProductType" runat="server" Visible="false" CssClass=""> |
<asp:Label ID="lblProductType" runat="server" Text="Product Type" AssociatedControlID="ddlProductType"></asp:Label> |
<telerik:RadComboBox ID="ddlProductType" Runat="server" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"></telerik:RadComboBox> |
</asp:Panel> |
<telerik:RadTabStrip ID="RadTabStripQuickDD" runat="server" Skin="Default" MultiPageID="RadMultiPageQuickDD"> |
</telerik:RadTabStrip> |
<telerik:RadMultiPage ID="RadMultiPageQuickDD" runat="server" CssClass="pageView" OnPageViewCreated="RadMultiPageQuick_PageViewCreated"> |
</telerik:RadMultiPage> |
I'm creating the tabs, pageviews, and combobox items at runtime on the server.
Any help would be appreciated.
Regards,
Mark.