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

radcombobox in a radgrid user control on a multipage, selectedindexchanged not triggering

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 12 Apr 2013, 10:42 PM
I have an issue where I have a radcombobox on a web user control inside a radgrid. The radgrid is inside a radmultipage. I am using a radajaxpanel as well. I noticed that the selectedindexchanged event of the combobox is not triggering. Furthermore, once I move the radgrid outside of the multipage, it is working fine. Is this a bug? I do need to use a multipage so is there a way for me to get this to work? See code snippets below.

Thanks!

ASPX:


    <telerik:RadAjaxPanel ID="rpnlTest" runat="server" Width="100%">
        <telerik:RadTabStrip ID="rtabRegistration" runat="server" Skin="Windows7" MultiPageID="rmpTest">
            <Tabs>
                <telerik:RadTab Text="Step 1" PageViewID="rpvStep1" Value="Step1">
                </telerik:RadTab>
                <telerik:RadTab Text="Step 2" PageViewID="rpvStep2" Value="Step2">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="rmpTest" runat="server">
            <telerik:RadPageView ID="rpvStep1" runat="server" TabIndex="0" Selected="true" >
<asp:Panel ID="pnlTest" runat="server" Visible="false">
<telerik:RadGrid ID="rgrdTest" runat="server" AutoGenerateColumns="false">
                                <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top">
                                    <Columns>
....
                                    </Columns>
    <EditFormSettings EditFormType="WebUserControl" UserControlName="test.ascx">
                                        <EditColumn UniqueName="EditCommandColumn1">
                                        </EditColumn>
                                        <PopUpSettings Modal="true" Width="800px" />
                                    </EditFormSettings>
                </asp:Panel>
            </telerik:RadPageView>

ASCX source:


            <telerik:RadComboBox ID="rcbTypeBusActivity" runat="server" AutoPostBack="True" MarkFirstMatch="true" 
                OnSelectedIndexChanged="rcbTypeBusActivity_SelectedIndexChanged" >
                <Items>
                    <telerik:RadComboBoxItem Text="Individual" Value="Individual" />
                    <telerik:RadComboBoxItem Text="Business Entity" Value="Business Entity" />
                    <telerik:RadComboBoxItem Text="Industry" Value="Industry" />
                    <telerik:RadComboBoxItem Text="Other" Value="Other" />
                </Items>
            </telerik:RadComboBox>

ASCX code:

    protected void rcbTypeBusActivity_SelectedIndexChanged1(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        pnlIndividual.Visible = false;
        pnlIndustry.Visible = false;
        pnlOther.Visible = false;
        if (e.Value == "Individual" || e.Value == "Business Entity")
            pnlIndividual.Visible = true;
        else if (e.Value == "Industry")
            pnlIndustry.Visible = true;
        else
            pnlOther.Visible = true;
    }

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 17 Apr 2013, 01:44 PM
Hello Philip,

The provided markup looks correct to me, and there is nothing obvious that may cause the problematic behavior. therefore I would suggest you to open a regular support ticket and send us sample runnable application which demonstrates the problematic behavior. Thus  we will be able to debug it locally and advise you further.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Philip
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or