[CLOSED] Window-->Tab Panel has several tabs, each loading same Child Page...... I want to call JS function in child from Window

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Window-->Tab Panel has several tabs, each loading same Child Page...... I want to call JS function in child from Window

    Hi,
    I have a bit of an issue.
    I have a window, inside I have a tab panel. The tabpanel loads a child panels defined on page load, with different parameters to represent different content for each tab.
    In the child page, I have a js function SaveModifiedRecords, which in turn calls an App.direct function that calls a method on the server in the Child Page.

    How, from the button defined on the Very top window ( the one hosting the TabPanel) , can I call this for the correct tab (activeTab)?

    I tried getting the body of the active Tab:

    App.ContentPlaceHolder1_TabPanel1.getBody().SaveMo difiedRecords.call() <-- NO LOVE

    I tried getting the tabpanel specifically:

    App.ContentPlaceHolder1_SubTab213.getBody().SaveMo difiedRecords.call() <-- NO LOVE

    How can I get to the body of a panel, who's content is loaded via a loader..so I can call a Javascript function in it?

    The panels in the tab are defined as so:
    private Panel CreatePanel(DebtLeverageSubsidiary sub)
            {
                string loadingString = (!string.IsNullOrEmpty(sub.Title)) ? "Loading Maturity Schedule for " + sub.Title + "..." : "Loading Maturity Schedule..";
    
    
                Ext.Net.Panel panel = new Ext.Net.Panel
                {
                    Border = false,
                    Title = sub.Title,
                    ID = "SubTab" + sub.DebtLeverageSubsidiaryId.ToString(),
                    Height = 390,
                    BodyStyle = "background-color:transparent;",
                    Loader = new ComponentLoader
                    {
                        LoadMask =
                        {
                            Msg = loadingString,
                            ShowMask = true
                        },
                        AutoLoad = true,
                        Mode = LoadMode.Frame,
                        DisableCaching = true,
                        Url = "MaturityEditor.aspx",
                        Params =  
                           {
                                 new Ext.Net.Parameter( "bsId",bsId.ToString(),Ext.Net.ParameterMode.Raw ),
                                 new Ext.Net.Parameter( "portId",portId.ToString(),Ext.Net.ParameterMode.Raw ),
                                 new Ext.Net.Parameter( "subId",sub.DebtLeverageSubsidiaryId.ToString(),Ext.Net.ParameterMode.Raw ),
                                 new Ext.Net.Parameter( "year",year.ToString(),Ext.Net.ParameterMode.Raw ),
                                 new Ext.Net.Parameter( "quarter",quarter.ToString(),Ext.Net.ParameterMode.Raw )  
                           }
                    }
                };
                return panel;
            }
    Last edited by Daniil; Feb 10, 2014 at 6:15 AM. Reason: [CLOSED]

Similar Threads

  1. Closing Window from child page
    By stebag in forum 2.x Help
    Replies: 5
    Last Post: Dec 12, 2013, 4:12 PM
  2. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM
  3. [CLOSED] [1.0] Call to grid function from child window
    By edigital in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 16, 2010, 8:41 AM
  4. [CLOSED] How to call a javascript function from a child page?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 25, 2010, 5:40 PM
  5. [CLOSED] call function from child window
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 29, 2009, 3:31 PM

Posting Permissions