I am deciding whether to use the Telerik controls for a project. The problem I've got is fairly straightforward and I've tried to create an ultra simple test code to see if it works and it doesn't.
I have a page with various forms of user input. I want a panel that displays a list of dynamically loaded user controls based on the user input.
For my test page I have simply created 3 user controls: control_a, control_b and control_c
On the main page I have a text input box and a "submit" button. I also have a xmlhttppanel and that simply has a placeholder in it The submit_click event simply reads .text property of the text box and does:
foreach (char c in txt_input.Text) {
if ("abc".Contains(c))
{
s = (UserControl)Page.LoadControl(string.Format("~/test/control_{0}.ascx", c));
s.ID = string.Format("asynccontrol_{0}", i++);
ph_panel.Controls.Add(s);
} }
This works. It dynamically loads a set of user controls based on the user input.
However, in control_a I have a label, a text box and a "save" button. The save_click event simply copies the text box text to the label.text
Without using the rad control xmlhttppanel I was having a problem with a standard .net form that the dynamically loaded user controls weren't persisting. The rad xmlhttppanel appears to solve this (fab). However, the save_click event isn't executing. What have I missed?
Do I need to do anything else to make this app run safely and robustly?