grid with a custom command to open a kendo-window with detailed data. Like described here:
http://demos.telerik.com/kendo-ui/grid/custom-command
I load the data for the grid as json via php script f.e. employees.php.
In the example by clicking on the "View Details" the windows loads Data from the same datasource.
What i need is to load detail data from another php/json file. I found out that it should work with the "refresh" Method, but i didn't get it to work.
Can anybody help me out?
UPDATE
Thanks to @Karthikeyan my code now looks like this:
<script>
... function showDetails(e) {
e.preventDefault();
var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
var dataItemID = dataItem.AK_ID;
$.getJSON('data/akDetail.php?ak=' + dataItemID + '', function (data) {
wnd.content(detailsTemplate(data));
wnd.center().open();
});
}
</script>
<script type="text/x-kendo-template" id="template">
<div id="details-container">
<h2>#= title_dataitem #</h2>
</div>
</script>
the kendo window does not open, i get an error in the chrome console: "Uncaught ReferenceError: title_dataitem is not defined"