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

[Solved] Ajaxfied Grid inside tabstrips: display issue

0 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
nachid
Top achievements
Rank 1
nachid asked on 09 Aug 2010, 10:38 AM
I am trying to insert an ajaxfied grid within a tabstrip
Actually, I just took from the sample application the AjaxBinding.aspx and insert it into a tabstrip ( see code below)
When an action accurs, the whole widow is replacing my tab

I guess it is something to do with the view rendered by the controler but I don't know how to specify that I want ro refresh only the tab holding the grid
Thank you for your help

Here is the code to reproduce the case
I just replaced the code of AjaxBinding.aspx  by adding two tabstrips and putting the ajaxfied grid in one fo them.
<% Html.Telerik().TabStrip()
           .Name(@"TabStrip")
           .Items(tabstrip =>  {
                           tabstrip.Add()
                                .Text("TAB 1")
                                .Content(() => {
                                             Html.Telerik().Grid<Order>()
                                                      .Name("Grid")
                                                      .Columns(columns=> {
                     columns.Bound(o => o.OrderID).Width(100);
                     columns.Bound(o =>o.Customer.ContactName).Width(200);
                     columns.Bound(o => o.ShipAddress);
                     columns.Bound(o => o.OrderDate).Format("{0:MM/dd/yyyy}").Width(120);})
.DataBinding( dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Grid"))
.Pageable()
.Sortable()
.Scrollable()
.Groupable()
.Filterable();
                                                     }  );
 
                                    tabstrip.Add()
                                        .Text("TAB 2");
            })
            .SelectedIndex(0)
            .Render();
%>
Tags
Grid
Asked by
nachid
Top achievements
Rank 1
Share this question
or