Hello ,,
I've two RadComboBox one for the Region and the other for the Place,,
When the user choose a Region the Place list will rebind and get the Places of the selected Region
everything was fine until i put the Region
when I did that the application still enter the selectedIndexChanged Event of the ddl_Regions and rebind the places but the ddl_Places does't refresh until i did a postback
Should i do postback everytime i want to rebind the ddl_Places data ,?,, what's the best way to achieve this?
Thank for help
I've two RadComboBox one for the Region and the other for the Place,,
<telerik:RadComboBox ID="ddl_Regions" runat="server" Skin="WebBlue" Filter="Contains" |
Width="200px" AutoPostBack="True" CssClass="Lists"> |
</telerik:RadComboBox> |
<telerik:RadComboBox ID="ddl_Places" runat="server" Skin="WebBlue" Filter="Contains" |
Width="200px" CssClass="Lists"> |
</telerik:RadComboBox> |
When the user choose a Region the Place list will rebind and get the Places of the selected Region
Dim Places As New BusinessLayer.Placess |
Places.GetByRegionID(ddl_Regions.SelectedValue) |
ddl_Places.DataSource = Places |
ddl_Places.DataTextField = "Name" |
ddl_Places.DataValueField = "ID" |
ddl_Places.DataBind() |
everything was fine until i put the Region
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> |
<AjaxSettings> |
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<telerik:AjaxUpdatedControl ControlID="ddl_Regions" /> |
<telerik:AjaxUpdatedControl ControlID="ddl_Places" /> |
<telerik:AjaxUpdatedControl ControlID="lbl_result" /> |
</UpdatedControls> |
</telerik:AjaxSetting> |
</AjaxSettings> |
</telerik:RadAjaxManager> |
when I did that the application still enter the selectedIndexChanged Event of the ddl_Regions and rebind the places but the ddl_Places does't refresh until i did a postback
Should i do postback everytime i want to rebind the ddl_Places data ,?,, what's the best way to achieve this?
Thank for help