Hi Dimo, I am having the same issue. I have a grid, which is populating properly when i put on a page. I have put a button on the page which displays kendo window in which i have to show another grid. I can see the window showing with the grid columns but no records. When i debug i can see it is going to my read.action methods for both grids at the initial load of the page itself and see the data for both the grids in the json. For the main grid on the page itself is showing up the data. For the second grid on kendo window is not showing any records.
<
p
><
span
id
=
"undo"
style
=
"display:none"
class
=
"k-button k-primary"
>Add Business Units</
span
><
br
><
div
class
=
"container-fluid"
><
br
> <
div
class
=
"row"
><
br
> <
div
class
=
"col-xs-18 col-md-12"
><
br
> @(Html.Kendo().Grid<
BHEBS.Areas.Admin.Models.ContractModel.businessUnit
>()<
br
> .Name("grid")<
br
> .Columns(columns =><
br
> {<
br
> columns.Bound(p => p.Id).Filterable(false).Width(50);<
br
> columns.Bound(p => p.BU_Id);<
br
> columns.Bound(p => p.Description);<
br
> columns.Bound(p => p.StartDate).Format("{0:MM/dd/yyyy}");<
br
> columns.Bound(p => p.EndDate).Format("{0:MM/dd/yyyy}");<
br
> columns.Bound(p => p.Fund);<
br
><
br
><
br
> columns.Command(command => command.Custom("Edit").SendDataKeys(true).Click("editClick"));<
br
> columns.Command(command => command.Custom("View").SendDataKeys(true).Click("viewClick"));<
br
> columns.Command(command => command.Custom("Delete").SendDataKeys(true).Click("deleteClick"));<
br
> })<
br
> .Pageable()<
br
> .Sortable()<
br
> .Scrollable()<
br
> .Filterable()<
br
> .Selectable()<
br
> .HtmlAttributes(new { style = "height:350px;" })<
br
> .DataSource(dataSource => dataSource<
br
> .Ajax()<
br
> .PageSize(20)<
br
> .Read(read => read.Action("BU_Read", "Contract").Data("additionalInfo"))<
br
> )<
br
> .ToolBar(toolbar =><
br
>{<
br
> toolbar.Template(@<
text
><
br
> <
div
class
=
"toolbar"
> <
br
> <
button
class
=
"k-button k-button-icontext k-grid-add k-primary"
>Add Business Units</
button
><
br
> </
div
><
br
> </
text
>);<
br
>})<
br
><
br
> )<
br
> </
div
><
br
> </
div
><
br
></
div
><
br
>@(Html.Kendo().Window()<
br
> .Name("window")<
br
> .Title("About Alvar Aalto")<
br
> .Content((Html.Kendo().Grid<
BHEBS.Areas.Admin.Models.ContractModel.businessUnit
>()<
br
> .Name("grid")<
br
> .Columns(columns =><
br
> {<
br
> columns.Bound(p => p.Id).Filterable(false).Width(50);<
br
> columns.Bound(p => p.BU_Id);<
br
> columns.Bound(p => p.Description);<
br
> columns.Bound(p => p.StartDate).Format("{0:MM/dd/yyyy}");<
br
> columns.Bound(p => p.EndDate).Format("{0:MM/dd/yyyy}");<
br
> columns.Bound(p => p.Fund);<
br
><
br
><
br
> columns.Command(command => command.Custom("Edit").SendDataKeys(true).Click("editClick"));<
br
> columns.Command(command => command.Custom("View").SendDataKeys(true).Click("viewClick"));<
br
> columns.Command(command => command.Custom("Delete").SendDataKeys(true).Click("deleteClick"));<
br
> })<
br
> .Pageable()<
br
> .Sortable()<
br
> .Scrollable()<
br
> .Filterable()<
br
> .Selectable()<
br
> .HtmlAttributes(new { style = "height:350px;" })<
br
> .DataSource(dataSource => dataSource<
br
> .Ajax()<
br
> .PageSize(20)<
br
> .Read(read => read.Action("GetAllBU_Read", "Contract"))<
br
> )).ToHtmlString()<
br
> )<
br
> .Draggable()<
br
> .Resizable()<
br
> .Width(600)<
br
> .Visible(false)<
br
> .Actions(actions => actions.Pin().Minimize().Maximize().Close())<
br
> .Events(ev => ev.Close("onClose"))<
br
> <
br
>).Render();</
p
><
p
> </
p
><
p
>$(document).ready(function(){ <
br
> $('#second').kendoWindow({<
br
> width:200,<
br
> position:{<
br
> left:300<
br
> },<
br
> visible:false<
br
> });<
br
> $("#undo").bind("click", function() {<
br
> $("#window").data("kendoWindow").open();<
br
> $("#undo").hide();<
br
> });<
br
> <
br
> $('button').click(function(){ <
br
> alert("inside");<
br
> $("#window").data("kendoWindow").open(); <
br
> });<
br
> });</
p
><
p
> public ActionResult BU_Read([DataSourceRequest]DataSourceRequest request, int Id)<
br
> { <
br
> return Json(BHEBS.Areas.Admin.Models.ContractModel.GetAllBU(Id).ToDataSourceResult(request));<
br
> }<
br
> public ActionResult GetAllBU_Read([DataSourceRequest]DataSourceRequest request)<
br
> {<
br
> return Json(BHEBS.Areas.Admin.Models.ContractModel.GetBU().ToDataSourceResult(request));<
br
> }</
p
>