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

RadComboBox not rendered when within ASP panel with initial visisble=false

1 Answer 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chetan
Top achievements
Rank 1
Chetan asked on 04 Feb 2016, 08:48 PM

RadComboBox not rendered (Rendered as "") when within asp panel with initial visible= false.

The asp panel is set to visible= true when postback is triggered via client using ajaxManager.ajaxRequest('InitialPageLoad'

 
protected void Page_Load(object sender, EventArgs e)
        {
            // register ajax
            Telerik.Web.UI.RadAjaxManager ajaxMgr_CCF =   Telerik.Web.UI.RadAjaxManager.GetCurrent(Page);
            ajaxMgr_CCF.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(AjaxRequestsForCCF);

}

 

protected void AjaxRequestsForCCF(object sender, AjaxRequestEventArgs e)
       {
           if (e.Argument == "InitialPageLoad")
           {
              pnlWithComboBox.Visible = true;
           }
       }

 

 RadCombobox is always set to visible = true.

The panel has other server side control but they render fine. 

If I set radComboBox1.visible = true then it works fine. But should it automatically render and no need for setting specificly

<asp:Panel ID="pnlWithComboBox" runat="server" visible="false">
        <telerik:RadComboBox ID="radcombobox1" runat="server"                                   Width="123px" RenderMode="Lightweight"                                    OnSelectedIndexChanged="btnSavePlaybackForward_Click" AutoPostBack="true" OnClientSelectedIndexChanged="comboBoxContext">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="1" Value="1" runat="server" />
                                        <telerik:RadComboBoxItem Text="2" Value="2" runat="server" />
                                        <telerik:RadComboBoxItem Text="3" Value="3" runat="server" />
                                    </Items>
                                </telerik:RadComboBox>
                            </asp:Panel>

function initializePage(sender, eventArgs) {                 var ajaxManager = $find('<%= RadAjaxManager.GetCurrent(this.Page).ClientID %>');                 ajaxManager.ajaxRequest('InitialPageLoad');   
          }

<telerik:AjaxSetting AjaxControlID="radAjaxManager1">  
 <UpdatedControls>         
        <telerik:AjaxUpdatedControl ControlID="pnlWithComboBox"  />   
  </UpdatedControls>  
 </telerik:AjaxSetting>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 08 Feb 2016, 01:48 PM
Hello,

Please review the answer provided in the ticket you have opened for the same issue.

Regards,
Maria Ilieva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Ajax
Asked by
Chetan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or