Dear Sir/Madam.,
I am trying to use paging with XamGrid - I have WCF which requests data from DB, I would like to have WCF getting only data for the current page. When the user clicks another page WCF gets data for that page.
Naturally, I do not want to upload all data from DB, however - I have problem with showing the right number of available pages - in other words when I have 100 rows in xamGrid - it shows [1] in the page list and I have problems making it show list like [1],2,3,4.....25.
I have two questions:
1) Is it better way to solve the problem? Right now I fill Grid.IntemSources with nulls (for other pages) to get the right paging
2) Is it any way to get pager listbox either from dataGrid.PagerSettings or from ControlTemplate. I tried VisualTreeHelper, Casting Resources with resources[object key], but I could not get them to work. I also tried binding, with the same result. Is it solvable?
Thank you
I would suggest looking at our VirtualCollection object, which is design to enable specific your scenario. Heres a link to a demonstration of the collection being used with xamGrid in our samples browser:
http://labs.infragistics.com/silverlight/lobsamples/2010.2/#/Samples/VirtualCollection/Paging/xamGridPaging
You can find the documentation for VirtualCollection here:
http://help.infragistics.com/NetAdvantage/Silverlight/2010.2/CLR4.0/?page=Virtual_Collection.html
Hope that helps.
Devin
Thank you so much, sir! I does work!