This is a migrated thread and some comments may be shown as answers.

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

1 Answer 17 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 11 Aug 2011, 09:34 PM
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();}

1 Answer, 1 is accepted

Sort by
0
Alden
Top achievements
Rank 1
answered on 06 Dec 2011, 11:57 PM
Jon,

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

AldenG
Tags
TabStrip
Asked by
Jon
Top achievements
Rank 1
Answers by
Alden
Top achievements
Rank 1
Share this question
or