iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I have implemented paging with the MVVM patern. This is done by implementing IPagedCollectionView. When I connect this ViewModels collection, the paging works to a point. I have a page size of 20, with a total of 940 records returned. This give me 47 pages. This is correct. The problem is, on each page only 1 record is shown. When I press next page, record 21 is only record shown and so on. When I connect my model up to a regular datagrid, all 20 records show. When I press next record 21 to 40 show. This is the correct functionality. Is there a setting on the GridPresenter I must set to show more that one record at a time.
Also when with the support site be up and running again?
Thanks,
Dermot
In the current released version, our presenter has only partial support for MVVM pattern. Do you mind providing us with a simple sample of the paging you are using? If the sample contains proprietary information, you could send the sample to technical@intersoftpt.com with reference to this thread.
Ufortunately, I do not have any fixed date for the new support site, however it will be online soon.
Hi Glenn
Sorry for the delay in getting back to you. I've done up a sample project. It works off a table called TestPaging. I've included a sql script called CreateTableScript.sql which will create the table and populate with 40 records. I've 2 grids on the form one a standard grid and the other an Intersoft grid. The standard grid pages correctly whereas the Intersoft one pages but only displays one record on each page.
Any help would be much appreciated
D
Thank you for the simple project, I have uscessfully replicated the sample on my environment. After discussing the issue with the developer, he has concluded that the issue is caused by a bug. A bug report has been submitted and a fix is scheduled in the next build of DataPresenter.
FYI, the property DataLoadingMode="PagedData" EnablePaging="Yes" PageSize="10" will caused the GridPresenter to use its internal paging mechanism, since your paging function is done in the ViewModel you will not need to set the property in the GridPresenter.
Hi
I'm a colleague of Dermot who raised this bug.
I have installed SP1 and this problem has been resolved. However we have come up with another problem. If you try and sort by a column the grid freezes with "Loading Data" in status bar. Does your grid support sorting if paging is done in ViewModel? If not is there a workaround?
You should be able to reproduce the issue in the sample project we previously provided you with. We deleted the line DataLoadingMode="PagedData" EnablePaging="Yes" PageSize="10" as you said to do
Thanks
I have retested the sample using the scenario you mention. Unfortunately, I alsoencounter the same issue. I have submitted a new bug report for the issue. I will update this thread if I have a new information regarding this issue.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname