Calling user control (Direct Method) from page in iframe tabPanel

  1. #1

    Calling user control (Direct Method) from page in iframe tabPanel

    I've a user control "MyUserControl", which has a direct method "DirectMethod1".
    "MyUserControl" locates on aspx the page, and this aspx page is opened as a tab of a TabPanel with iframe mode.
    Before I used the following approach to call direct methods

    function callDirectMethod(){
           Ext.net.DirectMethods.<%=ClientID%>.MyDirectMethod();
    }
    Now this approach doesn't work because of using TabPanel with iframe mode .
    How can I fix it?
  2. #2
    Similar problem. Can't call DirectEvent from page that loaded as a tab of a TabPanel with iframe mode.
    I use direct event "click" for button.
    In firebug I can see that request was send, but method on server does not called.
    submitDirectEventConfig: 
    { "config": {
                        "__EVENTTARGET" : "softwareList$ctl00$slResourceManager",
                        "__EVENTARGUMENT" : "btnLink|event|Click",
                        "extraParams" : {"UserName":"dev\\test1"}
                     }
    }
    Why so happened? Is there solution?
    Last edited by Yurgen; Oct 12, 2011 at 5:01 AM.
  3. #3
    Quote Originally Posted by Yurgen View Post
    Similar problem. Can't call DirectEvent from page that loaded as a tab of a TabPanel with iframe mode.
    I use direct event "click" for button.
    In firebug I can see that request was send, but method on server does not called.
    submitDirectEventConfig: 
    { "config": {
                        "__EVENTTARGET" : "softwareList$ctl00$slResourceManager",
                        "__EVENTARGUMENT" : "btnLink|event|Click",
                        "extraParams" : {"UserName":"dev\\test1"}
                     }
    }
    Why so happened? Is there solution?
    I found why direct event does not work in my case (pretty stupid). To display information in tab(with iframe mode), I created page with ext.net controls, but forgot insert "form" tag. After I added the tag direct event worked fine. Hope this helps someone.

Similar Threads

  1. Success function in calling Direct Method..help!
    By Aleksa007 in forum 1.x Help
    Replies: 2
    Last Post: Jul 26, 2011, 4:36 PM
  2. Replies: 2
    Last Post: Apr 27, 2011, 2:58 PM
  3. Replies: 1
    Last Post: Mar 11, 2011, 2:54 PM
  4. Replies: 8
    Last Post: Jan 25, 2011, 4:21 AM
  5. Replies: 8
    Last Post: Jun 24, 2010, 9:39 PM

Posting Permissions