Binding to IAsyncEnumerable

I want to ask if this is supported, can we bind a control (i.e. SfGrid) to an async stream? When I do this the IDE reports:

Error CS0411 The type arguments for method 'TypeInference.CreateSfGrid_0(RenderTreeBuilder, int, int, IEnumerable, int, string, int, RenderFragment)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

Is there any guidance on this subject? I'm specifically speaking of Blazor Server here at this time.


1 Reply

MS Monisha Saravanan Syncfusion Team September 5, 2022 03:02 PM UTC

Hi Hugh,


Greetings from Syncfusion support


Query: “I want to ask if this is supported, can we bind a control (i.e. SfGrid) to an async stream?”


We have prepared an sample as per your shared information and we could not able to reproduce the reported issue at our end when binding async Data to Grid. Kindly check the attached sample for your reference.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorApp1-1012957193.zip


If the reported issue still reproduced then kindly share the below details to validate the issue further at our end.


  1. Share the entire Grid code snippet.
  2. Share us the video demonstration of the issue.
  3. If possible share us an simple issue reproduceable sample or try to reproduce the reported issue on the above provided sample.

The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.


Regards,

Monisha




Loader.
Up arrow icon