Hello out there,
I've implemented a lazy load algorithm for the grid before using some grid events. This worked very good for all scrolling possibilities (with the scroll bar and also with the keyboard): the grid loads the next row block when the end of the grid/data is reached.
Now I want to implement this with an grid in cards mode and this seems not to work so easily.
Can someone suggest some way to do this easily?
Thanks alot,
Frank
Okay, I will try the UltraDataSet.
You can certainly load more data that the grid requests if you like - although I can't see why you would want to.
This is very easy to see: performance. The data is coming from an WCF service and when we call it for every row, the performance goes drastically down.
Thanks,
Hi Frank,
Frank Hauptlorenz said:At the moment I'm using normal DataSets and the Grid event "AfterRowRegionScroll" to load new chunks of data from an WCF service.
So I guess you are loading a few more rows than you need at any one time so that the scrollbar has room to scroll a little?
I'm afraid I've never tried anything like that, so I really can't offer much advice on how to do it.
Frank Hauptlorenz said:Is it possible to load blocks (e.g. 40 rows) at once when using the UltraDataSource Virtual Mode?
The way the virtual mode works is that the UltraDataSource fires events any time it needs more data. If you scroll the grid down a page, the grid will ask the data source for the rows it needs to display at that time. It fires the events on a row-by-row basis, but you you load the data is up to you. You can certainly load more data that the grid requests if you like - although I can't see why you would want to.
At the moment I'm using normal DataSets and the Grid event "AfterRowRegionScroll" to load new chunks of data from an WCF service.
This event is not called in the card mode, instead AfterCardsScroll is called, but this behaves different.
Is it possible to load blocks (e.g. 40 rows) at once when using the UltraDataSource Virtual Mode?
It's hard to say without knowing more about which events you are using to load the grid. Why does CardView make any difference?
Are you aware that the UltraDataSource allows you to load the data into the grid on-demand? Check out the Virtual Mode sample in the WinGrid Samples explorer.