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

[Solved] Tabstrip grid script loading problem

0 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nandhini
Top achievements
Rank 1
Nandhini asked on 01 Oct 2010, 08:02 AM
Hi,

      I have a grid which contains a tabstrip opened for every row click, in which one tab loads telerik grid and the other one calls a partial view. When the grid is loaded for the first time everything works fine, but when i click next row, tab which contains partial view is not loaded properly. It redirects to the partial view page with this link
http://localhost:50639/Product/AjaxView_ProductPricing?category=test&item=2010test

Here is my view

Html.Telerik().TabStrip().Name("ProductTabstrip_<#= Category #>")
                 .SelectedIndex(0)
                 .Items(items =>
                 {
                       items.Add().Text("Product").Content(
                            Html.Telerik().Grid<Product>().Name("ProductGrid")
                                    .DataKeys(keys => keys.Add(p => p.ProductCode).RouteKey("productCode"))
                                    .Columns(columns =>
                                    {
                                            columns.Bound(o => o.ProductCode);
                                            columns.Bound(o => o.ProductCategory);
                                            columns.Bound(o => o.ProductItem).Width(100).ReadOnly();
                                            columns.Bound(o => o.ProductItemDescription).Width(100);
                                    })
                                   .DataBinding( databinding =>  databinding.Ajax().Select("GetProduct", "Product",new{category ="<#= Category #>",item = "<#= Item #>"}))
                                   .Resizable(resizing => resizing.Columns(true))
                                   .Pageable(page => page.PageSize(10))
                                   .Sortable()
                                   .Scrollable()
                                   .Filterable()
                                   .ToHtmlString());
                                                                    
                items.Add().Text("ProductPricing").LoadContentFrom("AjaxView_ProductPricing", "Product", new
                                                                                                 {
                                                                                                     category =
                                                                                                 "<#= Category #>",
                                                                                                     item =
                                                                                                 "<#= Item #>"
                                                                                                 });

Any ideas y this happens.. Loads correctly for the first time when main grid loads..?

Regards,
Nandhini Hari
Tags
General Discussions
Asked by
Nandhini
Top achievements
Rank 1
Share this question
or