+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Actopns in LoadContentFrom in Tabstrip is being called twice

Actopns in LoadContentFrom in Tabstrip is being called twice

2 posts, 0 answered
  1. Vivekh
    Vivekh avatar
    1 posts
    Registered:
    18 Sep 2014
    01 Nov 2014
    Link to this post

    Hi I am using tabstrips and when they are being loaded first time i guess the action is being called twice i got this doubt as i am seeing two spinners while the tab is loading so i have used debugger and guess what the action for default tab is being called once and after that when i click on another tab the underlying action is being called twice

     

     var tabStrip = $('#TabStrip').kendoTabStrip({
                animation: false,
                collapsible: false,
            }).data("kendoTabStrip");

            ////Current SelectedIndex
            var tabIndexToSelect = ParseQuery('tab');
            if (tabIndexToSelect == undefined) {
                debugger;
                tabStrip.select(0);
                //$("#TabStrip").block();
            }
            else {
                debugger;
                tabStrip.select(tabIndexToSelect);
            }

    And my tabstrip is

     

     

     Html.Kendo().TabStrip().Name("TabStrip")
               //.Animation(e=> e.Open(open => open.Fade(FadeDirection.In)))
               //.Events(e => e.ContentLoad("ContentTabStripLoad")
               //.Activate("Tabstrip_select"))
               .Items(parent =>
               {
                   parent.Add().Text("Sales")
                       .LoadContentFrom("_SalesItems", "DataTile", new { isEditingState = @Model.IsEditingState, dataSetID = @Model.DataSet.ID });
                   if (Model.EnableMixes == true)
                   {
                       parent.Add()
                           .Text("Sales of structural mixes")
                           //.Enabled(@Model.EnableMixes)
                           .LoadContentFrom("_SalesOfMixesItems", "DataTile", new { isEditingState = @Model.IsEditingState, dataSetID = @Model.DataSet.ID });
                       //.Selected(@Model.TabNameToSelect == "Sales of structural mixes" ? true : false);
                   }

                   parent.Add()
                       .Text("Customer/market costs")
                       .Enabled(@Model.EnableCommercialCosts)
                       .LoadContentFrom("_CustomerCosts", "DataTile", new { isEditingState = @Model.IsEditingState, dataSetID = @Model.DataSet.ID });
                   //.Selected(@Model.TabNameToSelect == "Customer/market costs" ? true : false);

                   if (Model.EnableMixes == true)
                   {
                       parent.Add()
                           .Text("Product mixes")
                           .Enabled(@Model.EnableMixes)
                           .LoadContentFrom("_ProductMixProducts", "DataTile", new { isEditingState = @Model.IsEditingState, dataSetID = @Model.DataSet.ID });
                       //.Selected(@Model.TabNameToSelect == "Product mixes" ? true : false);
                   }

                   if (Model.EnableCustomDriverItems == true)
                   {
                       parent.Add()
                           .Text("Custom driver items")
                           .Enabled(@Model.EnableCustomDriverItems)
                           .LoadContentFrom("_CustomDriverItems", "DataTile", new { isEditingState = @Model.IsEditingState, dataSetID = @Model.DataSet.ID });
                       //.Selected(@Model.TabNameToSelect == "Custom driver items" ? true : false);
                   }
               })
           .Render();
       }

     

    Please help me with this

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Dec 2016
    05 Nov 2014
    Link to this post
    Hello,

    As this issue is not related to Sitefinity itself but to Kendo TabStrip I would recommend you to open a support ticket to Kendo UI team.

    Alternatively you can open a new forum threat in the Kendo TabStrip forum.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
2 posts, 0 answered