This question is locked. New answers and comments are not allowed.
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
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