We have a Service calling a Webapi method after a while the child grid data is no longer bound. Is there something I am missing in my grid.
Here is the API Service Snippet as well
Hello Maya,
I am now at the point where I have an empty grid error:
The Grid Is Now Showing NoData
Fig 1 No Data
Fig 2 JSON Response
hierarchical-grid-lod.component.ts
Looks like the Web API Method is accessible outside of our network:
http://toddev.titanformwork.com/SalesmanJobInfo/GetJobInfoFull
The JSON looks like the following:
{ "data": [{ "JobInfoID": 289, "SequenceNumber": 0, "JobNumber": "710418019 ", "JobName": "314 Pennsylvania Avenue", "BusinessUnitID": 0, "ClientName": null, "StatusName": "Pending Assignment", "BookedUnbookedArchivedStatus": "Booked", "StartDate": "\/Date(-62135575200000)\/", "StartDateASISO8601": "2018-02-25T00:00:00Z", "GrossBuildingArea": 22720, "Total": 22110.000, "PrimarySalesmanName": "Paul Tauscher", "BidDate": "\/Date(-62135575200000)\/", "BidDateASISO8601": "2018-02-02T00:00:00Z", "Phase": null, "FreightRate": null, "EngineeringHours": 0, "DetailerHours": 0, "PrimaryEngineerName": null, "Remark": null, "NoOfFloor": 9, "PercentageShipped": null, "PrimaryCADTeamLead": null, "SecondaryCADTeamLead": null, "PrimaryDetailer": null, "SecondaryDetailer": null, "PDFFile": null, "ClientBusinessUnitID": 2200, "BusinessName": "Triborough Construction Services, Inc.", "JobInfoFloors": [{ "JobInfoFloorID": 902, "JobInfoID": 0, "Name": "Roof", "FloorType": "test", "NetAreaInSqFt": 1655, "FurnishAreaInSqFt": null, "LinearFootHandrail": 95, "LinearFootBeamInternal": 40, "LinearFootBeamSpandrel": null, "NoOfDropsPerSqFt": 0, "ClearStoryHeight": "9\u0027-8\"", "Discount": null, "StartDate": "\/Date(-62135575200000)\/", "StartDateISO3061": null, "EstimatedStartDate": null, "CompletionDate": null, "SequenceNumber": 9, "ShipOutInDay": null, "WorkingDurationInDay": 5, "IsCurrentFloor": null, "IsTemplate": null, "Description": null, "CreatedOn": null, "CreatedBy": null, "UpdatedBy": null, "UpdatedOn": null, "StatusID": null, "StatusName": null, "Comment": "", "SlabDepth": null, "Shores": null, "ShoreOptions": null, "ShoreCSV": "#3 Post Shore" } ] }}
Hello Eric,
I assume that your backend service is not publicly accessible, so Stackblitz would not be able to access it to display the data. You can Fork the original sample (Fork button at the top in Stackblitz) and apply your changes there, but make sure the backend service you use can be accessed externally.
I wasn’t able to replicate this in the previously shared Stackblitz sample when leaving it idle for a while. Let me know if you’ve been able to replicate it there and if so if it happens in a particular browser or environment.
If not, other than the data being different I don’t see much of a difference in the settings and the way the data is passed to the grid between your code snippets and the sample.
Could you share an example of what the json data returned from your service looks like for the parent and the child grid requests? Could you also check that there’s just one request for each, one for the parent when the page loads and one when the child grid is first expanded.
Also are there any errors when the data disappears in your application?
I’m looking forward to your reply.
Regard,
Maya Kirova
The data disappears after the user sits idle for a few minutes. There is no expansion or collapse of the child grids.
We are using