07-07-2012 09:44 AM
Hi,
As a genreal practise of the keeing UI and Bussiness logic separately. I'm trying to have the following setup:
UI - QML:
C++ code:
This is somewhere in the middle of the GroupDataModel example at: https://developer.blackberry.com/cascades/document
"
but the problem i'm facing is:
1. If it were to be an XMLListModel - i could have used the ListComponent - type - property to set the UI of different rows/types
But how can i do the same thing for the GroupDataModel which is in Code.
- Both for the header and other list items?
P.S: This attempt of mine is to achieve without QML and C++ bindings, but feel free to let me know, that a binding will be required and thus data insertion and its UI should be then managed through QML ![]()
07-09-2012 09:58 AM
I'm not sure I understand you question.
Can you look at samples quotes and stampcollector.
Note also this line:
mStampModel->setGrouping(ItemGrouping::ByFullValue
Also look at cascades knowledge base articles "Using your own data model" and "Using a Custom DataModel to Filter Data for a List View" (in http://supportforums.blackberry.com/t5/Cascades-De
After reading these, if you still have a question can you rephrase it?
Stuart
07-12-2012 01:45 PM