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;
}
}
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>