Hi,
I am updating the content of one combo box with another combo box through AjaxManager.
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="AjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ddlProductGroup">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ddlProductCategory"></telerik:AjaxUpdatedControl>
<telerik:AjaxUpdatedControl ControlID="ddlCategory"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
In the code above ddlProductGroup and ddlProductCategory are RadComboBox and ddlCategory is a standard asp:dropdownlist. Upon callback, I bind the same datasource object to ddlProductCategory and ddlCategory; however only ddlCategory is populated with data and ddlProductCategory has no data.
Here is the code for binding controls:
private void ddlProductGroup_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
this.ProductCategories = _presenter.EligibleProductCategories();
this.Categories = _presenter.EligibleProductCategories();
}
When I replace the Ajax callback with a standard postback, the problem goes away. Does anyone have a solution for this?
Thanks,
Chris
I am updating the content of one combo box with another combo box through AjaxManager.
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadAjaxManager ID="AjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ddlProductGroup">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ddlProductCategory"></telerik:AjaxUpdatedControl>
<telerik:AjaxUpdatedControl ControlID="ddlCategory"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
In the code above ddlProductGroup and ddlProductCategory are RadComboBox and ddlCategory is a standard asp:dropdownlist. Upon callback, I bind the same datasource object to ddlProductCategory and ddlCategory; however only ddlCategory is populated with data and ddlProductCategory has no data.
Here is the code for binding controls:
private void ddlProductGroup_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
{
this.ProductCategories = _presenter.EligibleProductCategories();
this.Categories = _presenter.EligibleProductCategories();
}
When I replace the Ajax callback with a standard postback, the problem goes away. Does anyone have a solution for this?
Thanks,
Chris