Thank for answer Vladimir, i stopped developing for a moment and get back to idea and moved forward and now i am struggling with another problem as i go step by step i have a scheduler (which is a custom editor template where i added a button "Select Resources" which button opens a modal window where i have a two tabs with kendo grid (one grid for every tab)
and here comes my first issue if i close a modal window close custom editor template and start whole event adding process open new custom editor and click on button to open modal for selecting resources kendo grid somehow duplicates header row for searching through grid.
What is the reason of such behavior and where should i search for solution ? I provides code of one kendo grid( code for both are quite similar so providing both will be unnecessarily) and code for modal window can u check them for issues and point me aything what i could do wrong ?
kendo grid
//==============
@(Html.Kendo().Grid<Larix.Esuite.Module.Contact.Public.IPerson>()
.Name("employessGrid")
.AutoBind(false)
.Columns(columns =>
{
columns.Bound(c => c.FirstName).Width(140).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
columns.Bound(c => c.LastName).Width(190).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
columns.Bound(c => c.TypeContact);
})
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Groupable()
.Sortable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Multiple))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(15)
.ServerOperation(true)
.Read(read => read.Action("Employess_Get", "Scheduler"))
)
)
//==============================
modal window
//=========================
<script>
$(document).ready(function () {
var win = $("\\#window").kendoWindow({
actions: ["Maximize", "Minimize", "Close"],
modal: true,
resizable: true,
title: "Select Resources",
content: "../Scheduler/ResourcesTemplate",
visible: false,
height: "60%",
width: "75%"
}).data("kendoWindow");
});
$("\\#resourceButton").click(function () {
$("\\#employessGrid").data("kendoGrid").dataSource.read();
$("\\#contractorsGrid").data("kendoGrid").dataSource.read();
var win = $("\\#window").data("kendoWindow");
win.center();
win.open();
});
</script>
@* Modal window for choosing contactors or employees *@
<div id="window">
</div>
//========================