BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Nickey
Thank you for
using Syncfusion Products and Sorry for the delay caused,
We have
analyzed your query and we would like to let you know that, Initially empty
rows will be created when you load the page. After some time when call PagedSource.Refresh
(once dataloaded) Grid rows will be refreshed based on data loaded, which
looks like blinking. And the certain delay caused in loading the items is which
looks like blinking.
Please let us
know if you have any concern.
Regards
Pradeepa
Hi Nickey,
Yes, we have checked your sample with three
different modes and in all three modes it shows empty pages when we run the
sample. We can avoid this by calling PagedSource.Refresh
after LoadDynamicItems.
Query |
Syncfusion comments |
In the first mode (Sync), the app is
working almost fine. Except from when switching pages fast (Standard
clicking): then it shows empty pages.
|
We have checked and it working fine, if you
call PagedSource.Refresh after LoadDynamicItems. |
At the second and third mode (Async &
AsyncFix), lines always turn blank the first time they're shown. This is
broken. At the second mode, the rows never, never updates. They keep blank,
until I leave the page and enters it again - it NEVER does the blink
(Reload). It's only in the third demo mode (AsyncFix) where I manually
triggers sfDataPager.PagedSource.Reload(), that it actually shows the data.
|
Yes, you have to call PagedSource.Refresh method
after LoadDynamicItems. Because this handler will return to our code once
encounter the await in handler code and UI will be refreshed with previous
data itself. Also we are not refreshing UI in LoadDynamicItems method call
also. So for your case, you have to call . PagedSource.Refresh to refresh the
UI. |
How do I implement asynchronious
dataloading (where I loads/filters/sorts data through a Task), and then
assign it the grid, without have the grid showing empty lines, blinking
e.t.c? It's ALL pages there is shown as blank, unless I manually trigger
.Reload() which causes the blink to happen.
|
You can display BusyIndicator until data
loads to the Grid. We will further look into this and update you the details
in one business day.{04/09/2014} |
Whenever I debug, I can see that the data
has been loaded into the collection, before I call LoadDynamicItems. Which
means that the Task is completed.... (otherwise it should have skipped the
"await" - which doesn't really seem possible).
|
Yes, LoadDynamicItems is invoked only after
await completed. But the event handler returned reached await code and the
code below await executed once data is loaded. So you have to call PagedSource.Refresh
to refresh the UI. |
Please let us know if you have any concern.
Regards
Pradeepa
Hi Nickey,
we internally logged report to update the UG when using await inside
OnDemandLoading event handler.We will update you regarding this once we update
our documentation.
Please let us know if you have any concern.
Regards
Pradeepa