PDA

View Full Version : XRender call DirectMethods from UserControl



vucuongkg
Mar 18, 2012, 11:52 AM
http://examples2.ext.net/#/XRender/UserControl/UpdateContent/

I can not call Direct method form Usercontrol, ex, I use:


<ext:Button ID="Button1" runat="server">
<Listeners>
<Click Handler="#{DirectMethods}.DirectMethod();" />
</Listeners> </ext:Button>


but Firebug alert DirectMethod() not found.


Thank in advance.

Daniil
Mar 19, 2012, 11:58 AM
Hi,

Thanks for the question, we should remove the DirectMethods from the example you mentioned, they are in that example be a mistake.

To get DirectMethods within a user control working, that user control must be recreated during each request.