there is a way to add an item by javascript, like this
radiobuttonlist.get_items().add( new Telerik.Web.UI.ButtonListItem())
1 Answer, 1 is accepted
0
Vessy
Telerik team
answered on 15 Apr 2021, 02:05 PM
Hi gonzalez,
With the current implementation of RadRadioButtonlist each ButtonListItem has its already assigned (and rendered) HTML element, thus such item cannot be created dynamically via JavaScript.
If adding a custom button from the server is applicable tot he scenario you are after, you can achieve it like follows:
protectedvoidPage_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ButtonListItem btn = new ButtonListItem("custom btn", "btn value");
RadRadioButtonList1.Items.Add(btn);
}
}