Hi, I have a problem with a child grid, that is added to the main one on the loadGrid event:
the main grid:
<ejs-grid id="my-grid" dataBound="dataBound" load="loadChild" [...]
<e-data-manager url="@Url.Action("UrlDataSource")" adaptor="UrlAdaptor"></e-data-manager>
[...]
and the child has it's own urlAdaptor.
function loadChild() {
this.childGrid = {
dataSource: new ej.data.DataManager({
url: "@Url.Action("UrlChildDataSource")",
adaptor: new ej.data.UrlAdaptor(),
crossDomain: true
}),
queryString: 'rowguid',
allowPaging: true,
allowSorting: true,
dataBound: function () {
this.autoFitColumns();
},
pageSettings: {pageSize: 5},
columns: [
{ field: 'displayName', headerText: 'Display Name', width: 200 },
[.......]
],
};
}
I'm getting 2 calls when the page/grid loads to the main grid controller... if I comment that event (and omit the child grid) I get only one call.
As you see, the adaptors are diferent endpoints.
Any Idea of what I am doing wrong?
thanks.