Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
920
igHierarchalgrid Child grids and remoteURL
posted

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

Parents
  • 7570
    posted

    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.

     

Reply Children