Hi Folks,
I have a FormView that contains a RadComboBox named ComboBox1 and a few other controls which I need to show or hide based on the ComboBox1 selected value using SelectedIndexChanged event.I put those controls inside a panel named Panel1.
This is the setting in the code behind:
I have a FormView that contains a RadComboBox named ComboBox1 and a few other controls which I need to show or hide based on the ComboBox1 selected value using SelectedIndexChanged event.I put those controls inside a panel named Panel1.
This is the setting in the code behind:
protected v
oid Page_PreRenderComplete(object sender, EventArgs e)
{
RadComboBox item1 = (RadComboBox)MyFormView.FindControl("ComboBox1");
Panel panel1 = (Panel)MyFormView.FindControl("Panel1");
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(item1 , panel1);
}
When I run the app and change the combobox1 value, I get this error: Unknown runtime error.
debuged it the error comes from
"updatePanelElement.innerHTML=rendering;" line
The thing is it works when I use another control but not the panel inside the FormView.
Thanks in advance for your help.
Sima