I am trying to use a togglebutton inside a repeater, but when I try to iterate over the repeater rows and use findcontrol, it tells me that it cannot convert type System.Web.UI.Control to Syncfusion.Javascript.ToggleButton.
Code is similar to this:
foreach (RepeaterItem ri in rptGivens.Items)
{
Syncfusion.JavaScript.ToggleButton tbx = (Syncfusion.JavaScript.ToggleButton)ri.FindControl("ToggleButton1");
}
How can I get access to the togglebutton while iterating of the control rows in the repeater?