[CLOSED] TabChange

  1. #1

    [CLOSED] TabChange

    Ok, this is the situation:
        Html.X().TabPanel().ID("Main").Height(300).Items
        (
            Html.X().Panel().ID("MainPanel").Title("Main").Items
            (
                Html.X().Panel().ID("InnerPanel").Title("Inner panel")
            )
            ,
            Html.X().Panel().ID("FirstPanel").Title("First"),
            Html.X().Panel().ID("SecondPanel").Title("Second")
        )
        .DirectEvents(de =>
        {
            de.TabChange.Url = Url.Action("TabSelectChange");
            de.TabChange.ExtraParams.Add(new Parameter("selectedTabId", "newTab.getId()", ParameterMode.Raw));
            de.TabChange.ExtraParams.Add(new Parameter("oldTabId", "oldTab.getId()", ParameterMode.Raw));
        })
    In TabSelectChange I need to have additional info - ID of the inner panel of selected tab(if it exist). It doesn't matter if I take it via parameter, or server side. Please help.
    Last edited by Daniil; Apr 28, 2015 at 9:30 AM. Reason: [CLOSED]
  2. #2
    Hi @ingbabic,

    Probably:
    newTab.child("panel").id
    Does it work for you?
  3. #3
    Yes, it does, thanks :)

    Meanwhile I've managed it also with:
    newTab.items.items[0].id
    (though I don't understand why items property, has it's own items where subcontrols are listed)
  4. #4
    A container's .items is a MixedCollection.
    http://docs.sencha.com/extjs/4.2.1/#...property-items

    A MixedCollection has its internal items which is an array.

Similar Threads

  1. TabStrip and DirectEvents with TabChange
    By HansWapenaar in forum 2.x Help
    Replies: 0
    Last Post: May 23, 2012, 1:21 PM
  2. TabPanel load panel in TabChange
    By naina in forum 1.x Help
    Replies: 1
    Last Post: Aug 02, 2011, 3:43 PM
  3. Tabchange masking help
    By norphos in forum 1.x Help
    Replies: 9
    Last Post: May 19, 2011, 2:41 PM
  4. Tabchange masking
    By norphos in forum 1.x Help
    Replies: 3
    Last Post: May 11, 2011, 6:45 AM
  5. [CLOSED] [1.0] TabPanel - Solution for no TabChange on Page_Load
    By bsnezw in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 06, 2010, 4:27 PM

Posting Permissions