or
data = new kendo.data.HierarchicalDataSource({ transport: { read: { url: "/Controller/Action", dataType: "json" } }, schema: { model: { id: "Id", hasChildren: "HasChildren" } }});$("#tree").kendoTreeView({ dataSource: data, dataTextField: "Alias", selected: "Selected"});
$("#newBatchWindow").kendoWindow({ width: "425px", height: "375px", title: "New Batch", visible: false, resizable: false, modal: true, content: "/Batch/Create"});var batchWindow = $('#newBatchWindow').data('kendoWindow');batchWindow.center();batchWindow.open();I'm filtering my grid with the following code:
$("#grid").data("kendoGrid").dataSource.filter({ logic: "or", filters: [{ field: "MyField", operator: "equals", value: parseInt($("#MyDropDown").val())}] });I have the frame structure below:
<frameset rows="*" frameborder="NO" framespacing="0" border="0">
<frame src="principal.aspx" id="main">
</ frameset>
principal.aspx
<script>
var window = $ ("#window"). kendoWindow ({
width: "50%"
height: "50%"
modal: true,
visible: false,
actions: ["Refresh", "Maximize", "Close"]
}). date ("kendoWindow");
</ script>
<iframe SRC="URL" id="frmConteudo"> </ iframe>
<div id="window"> </ div>
Now I have the problem. I'm inside the frmConteudo and want to access the div window. I can access the div window without problems this way:
$ ("#window", frames["main"].document)
However the need to access. Date ("kendoWindow") and the same is void of the two forms below:
var frame = frames["main"].document;
$ ("#window", frame).data("kendoWindow");
$ ("#window", frame).data(frame, "kendoWindow");
Any idea?