[CLOSED] [#506] TabPanel + ItemsFromPartial + ActiveTabIndex

  1. #1

    [CLOSED] [#506] TabPanel + ItemsFromPartial + ActiveTabIndex

    Please take a look at the sinppet:

    some.cshtml

    @{
      var treeTabPanel = ext.TabPanel();
      foreach(var tree in Model.Trees) {
        treeTabPanel.ItemsFromPartial("Tree", tree);
      }
      treeTabPanel.ActiveTabIndex(2); // --- exception!
    }
    at the last line I have got an exception:
    "The .ActiveTabIndex value was set to the index of an item which does not exist in the 'id4dd582df60c6568d' Items Collection.
    The .ActiveTabIndex can not be set to a value > -1.
    The actual .ActiveTabIndex Value attempted was 2."

    That is the correct way to set active tab?
    Last edited by Daniil; Jun 10, 2014 at 2:09 PM. Reason: [CLOSED]
  2. #2
    Hi @alex303,

    Thank you for pointing that problem out. We will investigate what we can do to get .ActiveTabIndex working in such a scenario.

    For now, please use the following instead of ActiveTabIndex.
    .CustomConfig(cc => cc.Add(new { activeTab = 2 }))
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @alex303,
    For now, please use the following instead of ActiveTabIndex.
    .CustomConfig(cc => cc.Add(new { activeTab = 2 }))
    Thank you.
  4. #4
    Created an Issue:
    https://github.com/extnet/Ext.NET/issues/506

    Fixed in the trunk, revision #5867.

Similar Threads

  1. [CLOSED] [MVC] Swap_Dropable with itemsFromPartial
    By Tactem in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Oct 23, 2013, 12:42 PM
  2. ActiveTabIndex
    By Yannis in forum 1.x Help
    Replies: 2
    Last Post: Jan 19, 2011, 1:12 AM
  3. Set value to ActiveTabIndex.
    By flaviodamaia in forum 1.x Help
    Replies: 3
    Last Post: Mar 26, 2010, 2:45 PM
  4. Replies: 0
    Last Post: May 20, 2009, 10:27 PM
  5. [CLOSED] ActiveTabIndex
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 18, 2008, 6:08 AM

Posting Permissions