combobox not show in dynamic usercontrol.

3 posts, 1 answers
  1. trunghth
    trunghth avatar
    3 posts
    Member since:
    May 2013

    Posted 24 May 2013 Link to this post

    Hi,
    I got a problem with radcombox like here:
    addReportDocByVTHS.ascx
    <
    telerik:RadComboBox ID="ddltype" runat="server" Label="Doc Type: " Width="200px">
    </telerik:RadComboBox>
    and in my parent usercontrol i call addReportDocByVTHS.ascx like this:
    UserControl_ReportDoc_addReportDocByVTHS control = (UserControl_ReportDoc_addReportDocByVTHS)this.Page.LoadControl("~/Usercontrol/ReportDoc/addReportDocByVTHS.ascx");
            if (control != null)
            {         
                control.modalContainer = pnlInsert_ModalPopupExtender.ID.ToString();
                control.AfterClickLuu += new EventHandler(btsearch_Click);
                if (!pnlInsert_child.Controls.Contains(control))
                {
                    pnlInsert_child.Controls.Add(control);
                    pnlInsert_ModalPopupExtender.Show();
                }
                Session["action"] = "insert";
            }
    //load dropdownlist
    ddltype.DataSource = F_DocType.GetList();
            ddltype.DataTextField = "DOC_TYPENAME";
            ddltype.DataValueField = "DOC_TYPE";
            ddltype.DataBind();
    here is my parent usercontrol.ascx like:
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
    <ContentTemplate>
    <asp:HiddenField ID="hdfMacv" runat="server" />   
    <asp:ModalPopupExtender ID="pnlInsert_ModalPopupExtender" runat="server"
         Enabled="True" TargetControlID="hdfMacv" PopupControlID="pnlInsert"
        BackgroundCssClass="modalBackground" 
        ></asp:ModalPopupExtender>
        
    <asp:Panel ID="pnlInsert" runat="server" CssClass="ModalWindow"  style="display:none">   
            <asp:PlaceHolder ID="pnlInsert_child" runat="server" EnableViewState="false">
            </asp:PlaceHolder>
    </asp:Panel>
        </ContentTemplate>
        </asp:UpdatePanel

    My combobox can't shown down when i click, i only can press "up" and "down" keyboard to choose.
    would I miss anything.please tell me. thanks

  2. Answer
    Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 29 May 2013 Link to this post

    Hello Hua,

    I have tried to replicate the described issue, but to no avail. I have prepared a sample project for you, demonstrating the behavior at my end. Would you give it a try at your end and let me know if I had missed something? In addition, would you specify under which browser you are encountering the problem and which is the version of our controls that you are using?

    Note : dll files are removed from the attachment.

    Regards,
    Nencho
    Telerik
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. trunghth
    trunghth avatar
    3 posts
    Member since:
    May 2013

    Posted 18 Jul 2013 Link to this post

    hi Nencho ,
    thank for your reply, i rarely on net. i solve my problem with z-index. when i use popup, i dont think radcombobox got z-index lower, i thought it in error. if i could find where to edit my z-index combobox , then it better ! thank ur help ! :)
Back to Top