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

User control inside RadTabStrip

2 Answers 205 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Binoj
Top achievements
Rank 1
Binoj asked on 30 Nov 2010, 06:55 AM
Hi

I have a usercontrol inside a RadTabStrip. 5 Pageviews are contained in the tabStrip and the usercontrol embedded in the 3rd page. The usercontrol have a radscriptblock which have functions for ClientSelectedIndexChanged of a combo. AutoPostBack of RadTabStrip and RenderSelectedPageOnly of RadMultiPage set to true. When the 3rd page selected, a JS error occurs with the message 'ClientSelectedIndexChanged could not find'. How can I fix the issue?

thanks and regards

binoj

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Nov 2010, 08:41 AM
Hello Binoj,

 I'm unable to recreate the mentioned behavior at my end.Please make sure that  event handler name is correctly spelled. Could you please provide more details/your code.

Thanks,
Princy.
0
Binoj
Top achievements
Rank 1
answered on 30 Nov 2010, 10:01 AM
usercontrol

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Configuration.ascx.cs"
    Inherits="Configuration" %>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function uxExportOption_ClientSelectedIndexChanged(sender, eventArgs) {
            if (sender.get_text() != "Export To ...") {
                __doPostBack(sender.get_id(), '{\"Command\" : \"Select\"}');
                sender.findItemByText("Export To ...").select();
            }
        }
</script>
</telerik:RadScriptBlock>
<!--User Control Codes Here-->

Tabstrip
<ux:RadMultiPage RenderSelectedPageOnly="true">
<ux:RadPageView></ux:RadPageView>
<ux:RadPageView></ux:RadPageView>
<ux:RadPageView ID="uxConfiguration" runat="server" CssClass="TabContent">
                        <cc:Configuration ID="uxConfigurationControl" runat="server" />
                    </ux:RadPageView>
<ux:RadPageView></ux:RadPageView>
<ux:RadPageView></ux:RadPageView>
</ux:RadMultiPage>

This is my code. when the selected index makes to 2 ie the index of page contains the user control, it works well. otherwise results in error
Tags
TabStrip
Asked by
Binoj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Binoj
Top achievements
Rank 1
Share this question
or