This question is locked. New answers and comments are not allowed.
Hi guys
I've encoutered a strage problem.
I've tried to add a ToolBar with a Template in a DetailView, but it appears on the Master View.
Here my code
Anyone can help me?
Thank you
I've encoutered a strage problem.
I've tried to add a ToolBar with a Template in a DetailView, but it appears on the Master View.
Here my code
Html.Telerik().Grid<myNamespace.myMasterModel>() .Name("myMaster") .DataKeys(keys => { keys.Add(p => p.id); }) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("_SelectMasterMethod", "myContr") .Update("_UpdateMasterMethod", "myContr"); }) .Columns(columns => { columns.Bound(x => x.id); columns.Bound(x => x.Description); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.ImageAndText); }).Title("Commands"); }) .DetailView(details => details.ClientTemplate(Html.Telerik().Grid<myNamespace.myDetailModel>() .Name("myDetail_<#= id #>") .ToolBar(toolBar => toolBar.Position(GridToolBarPosition.Top).Template(() => { %>Hi this is a detail toolbar<% })) .DataKeys(k => { k.Add(p => p.id); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_SelectDetailsMethod", "myContr", new { id = "<#= id #>" }) .Update("_UpdateDetailsMethod", "myContr")) .Columns(cols => { cols.Bound(x => x.id); cols.Bound(x => x.Description); cols.Command(commands => { commands.Edit().ButtonType(GridButtonType.ImageAndText); }).Title("Commands"); }) .ToHtmlString() )) .Editable(editing => editing.Mode(GridEditMode.PopUp)) .Pageable(x => x.PageSize(50)) .Sortable() .Render();Anyone can help me?
Thank you