Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > When inserting a record in a grid which is in a tabstrip...

Not answered When inserting a record in a grid which is in a tabstrip...

Feed from this thread
  • Jon avatar

    Posted on Aug 11, 2011 (permalink)

    I have a tabstrip:
    @{Html.Telerik().TabStrip()
                .Name("TabStrip")
                .Effects(fx => fx.Expand()
                                .Opacity()                           
                                .OpenDuration(200)
                                .CloseDuration(200))        
                .Items(tabstrip =>
                {
                    tabstrip.Add()
                        .Text("Details")                   
                        .LoadContentFrom("BalanceSummary", "Commitment", new { Id = Model.Id });
                    tabstrip.Add()
                        .Text("Funding/Budget")
                        .LoadContentFrom("CommitmentDetail", "Commitment", new {Id = Model.Id});
                    tabstrip.Add()
                        .Text("Transactions");
                    tabstrip.Add()
                        .Text("Documents");
                })
                .SelectedIndex((int)ViewData["tabIndex"])               
                .Render();}


    When I click the insert button, it reloads JUST the partial view with no layout, style, etc. Any ideas?? I have searched these forums and have seen a lot of people with this problem, but no solution. I have registered all grid scripts, etc. 

    Here is the grid in the partial view:
    @{Html.Telerik().Grid(Model)
                                .Name("FundsGrid")  
                                .ClientEvents(e => e.OnRowSelect("onRowSelect"))
                                .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image))
                                .Editable(editing => editing.Mode(GridEditMode.PopUp).TemplateName("CreateFundTemplate"))                        
                                .Columns(columns =>
                                {
                                    columns.Bound(o => o.FiscalYear);
                                    columns.Bound(o => o.Fund.Name);
                                    columns.Bound(o => o.Amount);
                                    columns.Bound(o => o.Fund.CurrentBalance);                                   
                                })
                                .DataBinding(dataBinding => dataBinding.Server.().Insert("Create", "FundCommitment"))                                  
                                .DataKeys(keys =>
                                {
                                    keys.Add(o => o.Id);
                                })
                                .Pageable()
                                .Sortable()
                                .Filterable()
                                .Selectable() 
                                .Render();}

    Reply

  • Alden avatar

    Posted on Dec 6, 2011 (permalink)

    Jon,

    I am stuck on this same issue.  Did you ever resolve it?  I believe I have the necessary js files loaded, too.

    AldenG

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > TabStrip > When inserting a record in a grid which is in a tabstrip...
Related resources for "When inserting a record in a grid which is in a tabstrip..."

ASP.NET MVC TabStrip Features  |  Documentation  |  Demos  |  Telerik TV ]