I have a UserControl that implements IPostBackEventHandler and I have several problems:
1) RadAjaxManager Property Builder does not list my control. I must add it manually in the Page_Load event.
2) When I initiate an ajax postback in javascript with the following code it does a normal postback (not ajax postback):
I solved the problem with two "not elegant" solutions:
1) By ajaxfing the whole FormView (totally inefficient!)
2) Or by putting the usercontrol in a RadAjaxPanel and then implementing the Ajax_Request event:
Is this a common practice? Or should RadAjaxManager work?
Thanks a lot!
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument){ if (eventArgument.Equals("Refresh", StringComparison.InvariantCultureIgnoreCase)) Refresh();}1) RadAjaxManager Property Builder does not list my control. I must add it manually in the Page_Load event.
2) When I initiate an ajax postback in javascript with the following code it does a normal postback (not ajax postback):
<%= Page.GetPostBackEventReference(FormView.FindControl("anotaciones"), "Refresh") %>
I solved the problem with two "not elegant" solutions:
1) By ajaxfing the whole FormView (totally inefficient!)
2) Or by putting the usercontrol in a RadAjaxPanel and then implementing the Ajax_Request event:
((sender as Control).FindControl("anotaciones") as Anotaciones).Refresh();Is this a common practice? Or should RadAjaxManager work?
Thanks a lot!