XRender call DirectMethods from UserControl

  1. #1

    XRender call DirectMethods from UserControl

    https://examples2.ext.net/#/XRender/...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.
    Last edited by vucuongkg; Mar 18, 2012 at 10:56 AM.
  2. #2
    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.

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2013, 6:00 PM
  2. Call DirectMethods from Javascript
    By ginsar in forum 1.x Help
    Replies: 4
    Last Post: Jun 08, 2011, 11:59 AM
  3. DirectMethods Call Twice
    By santosbj in forum 1.x Help
    Replies: 2
    Last Post: Jun 17, 2010, 2:34 AM
  4. [CLOSED] XRender UserControl DirectMethod
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jan 22, 2010, 1:03 PM
  5. [CLOSED] XRender UserControl NamingContainer
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 27
    Last Post: Jan 21, 2010, 4:10 PM

Tags for this Thread

Posting Permissions