I am using a igHierarchalGrid. I can expand the child grids to display when using
dataSourceType: "json", dataSource: jsonData,
Supplying the json for the main grid and child grids together in jsonData.
But when changing to a remote URL as the data source supplying the exact same json
dataSourceType: "remoteUrl", dataSource: URL,
The main grid is displayed OK but I receive the error when trying to expand the child grid:
'The remote request to fetch data has failed:'
It looks as though the grid is trying to go to the remote URL again although the data for the child grid should be already there.
Can anyone explain how to get the child grid to expand without trying to invoke the URL
Hello ecatenate,
In addition, I also recommend using .DataSourceURL with the following additional function above the grid's definition:
<script type="text/javascript"> $(function () { $("#igGrid1").live("iggriddatabinding", function (evt, ui) { $("#igGrid1").igGrid("option", "dataSourceType", "json"); }); }); </script>
For more information, please refer to the following forum thread:
http://es.infragistics.com/community/forums/p/68393/347096.aspx
I hope this helps.
If you have any questions, please let us know as well.
Thanks for your reply to the problem.
We have resolved by removing the reference to dataSourceType in
dataSourceType: "remoteUrl",
dataSource: URL,
This doesnt cause problem in igGrid but igHierarchicalGrid produces remote fetch error when expanding the child grid - even though oData is false and load on demand should be disabled for jquery widget.
Hello ecanate,
Please let me know if you have further questions.