Jun 09, 2014, 2:27 PM
[CLOSED] [#506] TabPanel + ItemsFromPartial + ActiveTabIndex
Please take a look at the sinppet:
some.cshtml
"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?
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]