This question is locked. New answers and comments are not allowed.
I put two grid in a pop up edit template, but when the window pop up only the first grid trying to send request to action,why?
views: AAA
views:custom edit template for AAA
when I click the edit button in the first view, the second view popup, but only the Grid2 send request to the action,why? BTW, when I click insert button on the custom edit template for AAA, there is no window pop up and the page refreshed to a new location, if i just place one grid on the custom edit template for AAA,I can see the grid send request to the action, but still can not pop up window when I click insert button on the grid.
views: AAA
@(Html.Telerik().Grid(AAA).Name("Grid1") .DataKeys(dataKeys => dataKeys.Add(c => c.id)) .ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image).ImageHtmlAttributes(new { style = "margin-left:0" })) .DataBinding(dataBinding => { dataBinding.Server().Select("Index", "AAA"); dataBinding.Ajax() .Select("Select", "AAA") .Insert("Insert", "AAA") .Update("Update", "AAA") .Delete("Delete", "AAA"); }) .Columns(columns => { ...... }) .Editable(editing => editing.Mode(GridEditMode.PopUp)) .Scrollable(scroll => scroll.Enabled(true).Height(300)) .Sortable(sortable => sortable.Enabled(false)) .Pageable() .Filterable() .Footer(true) )views:custom edit template for AAA
@model Models.AAA @{ Html.Telerik().TabStrip() .Name("TabStrip") .Items(tabstrip => { tabstrip.Add() .Text("item1") .Content( @Html.Telerik().Grid(Model.BBB).Name("Grid2") .DataBinding(dataBinding => { dataBinding.Ajax() .Select("BBB", "Controller") }) .Columns(columns => { ...... }) .ToHtmlString() ); tabstrip.Add() .Text("item2") .Content( @Html.Telerik().Grid(Model.CCC).Name("Grid3") .DataBinding(dataBinding => { dataBinding.Ajax() .Select("CCC", "Controller") }) .Columns(columns => { ...... }) .ToHtmlString() ); } ).SelectedIndex(0).Render(); }when I click the edit button in the first view, the second view popup, but only the Grid2 send request to the action,why? BTW, when I click insert button on the custom edit template for AAA, there is no window pop up and the page refreshed to a new location, if i just place one grid on the custom edit template for AAA,I can see the grid send request to the action, but still can not pop up window when I click insert button on the grid.