[CLOSED] Uncaught TypeError: Object #<Object> has no method '***'

  1. #1

    [CLOSED] Uncaught TypeError: Object #<Object> has no method '***'

    Hi,
    I try to add DirectMethod to my GridPanel.I get following error.
    Where am i wrong.


    Error :Uncaught TypeError: Object #<Object> has no method 'Reject'
    public partial class UserPanelState 
        {
    *****other codes*****
            [DirectMethod]
            public void Reject()
            {
                Ext.Net.X.Js.Alert("Çok şükür :)");
            
                wirelessClient = new WirelessServiceClient();
                userByStateRequest = new GetUserByStateRequest();
                userByStateResponse = new GetUserByStateResponse();
               
    
            }
    *********
    }

    public partial class UserPanelState 
        {
    ******other codes******
             gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods.Reject();";
    *********
    }
    TIA!
    Last edited by Daniil; Apr 02, 2012 at 8:59 PM. Reason: [CLOSED]
  2. #2
  3. #3
    I already added

     this.ResourceManager.AddDirectMethodControl(this);
    I think there is another mistake
  4. #4
    Please read further how to access that DirectMethod.
  5. #5
    I changed

      gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods.Reject();";
    to

    gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods['GenericGrid'].Reject()";
    or
    gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods.['GenericGrid'].Reject()";
    or
    gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods[GenericGrid].Reject()";
    but none of them works
  6. #6
    Please wrap the code in [CODE ] tags. Please use the "Edit Post" button to edit the existing post to avoid posting a new one.
  7. #7
    Nobody get this kind of error?
  8. #8
    According to
    http://forums.ext.net/showthread.php...ll=1#post63711
    you should use the control client id.

    Is the GenericGrid client id of the control?

    Please try:
    gridPanelWithButton.Listeners.Command.Handler = "Ext.net.DirectMethods[this.id].Reject()";

Similar Threads

  1. Replies: 0
    Last Post: May 02, 2012, 6:39 PM
  2. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM
  3. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  4. Object doesn't support this property or method
    By Tbaseflug in forum 1.x Help
    Replies: 8
    Last Post: Aug 18, 2009, 12:10 PM
  5. Replies: 0
    Last Post: Apr 14, 2009, 12:33 PM

Posting Permissions