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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

sfdatagrid asynchron data loading

Thread ID:

Created:

Updated:

Platform:

Replies:

118297 Feb 21,2015 09:52 AM UTC Mar 4,2015 04:44 PM UTC WPF 9
loading
Tags: SfDataGrid
issam
Asked On February 21, 2015 09:52 AM UTC

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

Jai Ganesh S [Syncfusion]
Replied On 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


issam
Replied On 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 !


Jai Ganesh S [Syncfusion]
Replied On 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


issam
Replied On 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






Jai Ganesh S [Syncfusion]
Replied On 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


issam
Replied On February 26, 2015 12:47 PM UTC

ok , i can live with that :)

thanks for your assistance !

Jai Ganesh S [Syncfusion]
Replied On 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



issam
Replied On 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 ?

Jai Ganesh S [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;