We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

sfdatagrid asynchron data loading

Hi,

does the sfdatagrid support async data loading , since it's very very common these days .

any guidance on how it can be done with a busy indicator ?

thanks and good day

9 Replies

JG Jai Ganesh S Syncfusion Team February 24, 2015 12:40 PM UTC

Hi Issam,

 

Thank you for using Syncfusion Products.

 

Yes the SfDataGrid support Async data loading. We have prepared the sample for loading datas by using async and await concept with BusyIndicator and please find the sample under the following location,

 

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/SfGridAsyncLoadingSample-2124420340.zip

 

We already have a kb for the async and await concept and please find the kb links as follows,

 

Kb Links:

 

http://www.syncfusion.com/kb/2829/how-to-load-pages-in-ondemand-using-async-await

 

http://www.syncfusion.com/kb/2395/how-to-load-detailsview-itemssource-asynchronously

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S



IS issam February 24, 2015 09:02 PM UTC

just perfect like expected :)

one little thing .
the WPF Exteneded Toolkit has that very cool visual effect when scrolling the grid
[URL=http://www.hostingpics.net/viewer.php?id=767404grid.jpg][IMG]http://img15.hostingpics.net/thumbs/mini_767404grid.jpg[/IMG][/URL]

like you can see, when scrolling  the bottom rows fadein and become visible slowly wich give a very good effect .

it would be awesome if the sfdatagrid could do the same thing .

again any guidance is more than welcome

anyway, thanks a lot !



JG Jai Ganesh S Syncfusion Team February 25, 2015 07:18 PM UTC

Hi Issam,

 

Thank you for the update.

 

We regret to inform you that, our SfDataGrid does not having animated scrolling support like Xceed DataGrid having.

 

Please let us know if you have any other queries.

 

Thank you,

Jai Ganesh S



IS issam February 25, 2015 08:22 PM UTC

ok i can understand that outofbox there is no such feature .

but please can you suggest me some sfdatagrid events or properties i can use to implement this type of effect myself







JG Jai Ganesh S Syncfusion Team February 26, 2015 12:12 PM UTC

Hi Issam,

 

Thank you for the update.

 

We have analyzed your query. In our SfDataGrid we are reusing the rows when scrolling the grid and it is not possible to do fading the rows at that time. We have Incremental loading concept to load the large amount of datas, and it allows you to load a subset of data to datagrid sequentially. It provides support for fast and fluid scrolling and loading a huge set of data. Could you please use this approach whether it meet your requirement?

 

UG Link:

http://help.syncfusion.com/ug/wpf/default.htm#!documents/incrementalloading.htm

 

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/IncrementalLoading-551158091.zip

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S



IS issam February 26, 2015 12:47 PM UTC

ok , i can live with that :)

thanks for your assistance !


JG Jai Ganesh S Syncfusion Team February 27, 2015 04:13 AM UTC

Hi Issam,

Thank you for the update.

Please let us know if you have any queries.

Thank you,

Jai Ganesh S




IS issam March 2, 2015 05:10 PM UTC

Hi,

i would probably use syncfusion datagrid for best performance, but man, this fading rows effect is so cool :) you know what i mean right ;)

okay , if it's not possible to do that directly with rows ,can we fake it ?

if we put a border ontop of the datagrid with some gradient transparent and hittest disabled,
then, animate the gradient on datagrid scroll .

what do you think about this approch ?
any suggestions for scroll events i can use please ?


JG Jai Ganesh S Syncfusion Team March 4, 2015 04:44 PM UTC

Hi Issam,

 

Thank you for the update.

 

We have analyzed your query. You can use ScrollRows.Changed event when we vertically scrolling the SfDataGrid.

 

Code Snippet [C#]:

 

using Syncfusion.UI.Xaml.Grid.Helpers;

 

this.datagrid.Loaded += datagrid_Loaded;

 

void datagrid_Loaded(object sender, RoutedEventArgs e)

{

    var visualContainer = this.datagrid.GetVisualContainer();

    visualContainer.ScrollRows.Changed += ScrollRows_Changed;

}

 

void ScrollRows_Changed(object sender, Syncfusion.UI.Xaml.ScrollAxis.ScrollChangedEventArgs e)

{

       //Implement your code here

}

 

Please let us know if you need further assistance.

 

Thank you,

Jai Ganesh S


Loader.
Up arrow icon