This is a migrated thread and some comments may be shown as answers.

Fill detail grid async

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mehrdad
Top achievements
Rank 1
Mehrdad asked on 02 Nov 2011, 10:27 AM
I have a grid in a form with another grid in DetailTables (detail grid).
I'm using wcf service to fetch data and fill in dataSource of grids (master and detail).
For this in OnDetailTableDataBind event of master grid, I've set the e.DetailTableView of event in a field and called the async operation of service and in Completed event of service ,i've bind the result to the filed DataSource and it doesn't work.
but it works if I call the operation sync.
I want to call it async, what should I do?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 07 Nov 2011, 10:31 AM
Hi Mehrdad,

Can you elaborate on what is the HIerarchyLoadMode for the MasterTableView? If it is the default, ServerOnDemand, the DetailTableDataBind event should be called after the parent item expand button is clicked. In this case postback is performed and the nested view is populated. So I believe in this scenario it is better to use sync call for the WCF service. Otherwise when an item is expanded, the response from the server can be sent to the client before the WCF call has finished and as a result the nested view will not be populated.

Regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Mehrdad
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or