If I have radiobuttonlist like this:
<asp:RadioButtonList ID="rbtn_PeriodTypeName" runat="server" DataTextField="PeriodTypeName" DataValueField="PeriodTypeId" AutoPostBack="true" RepeatDirection="Horizontal">
</asp:RadioButtonList>
And according to the user selection, I have to bind my dropdownlist from database.
<telerik:RadDropDownList ID="ddl_PeriodType" runat="server">
</telerik:RadDropDownList>
How to do something like that using Ajax page method?
EX:
My radio button list:
- 1
- 2
- 3
If the user select 2 the dropdownlist should be like this:
- W1
- W2
- W3
SelectedIndexChanged
event of the radio button and rebind the dropdown based on selected index. If you do not want to reload the page, then useAJAX
to refresh dropdown list on client side using webapi or webmethod. – Polynomial Proton Aug 9 '16 at 22:36