Hello,
In my application I need to use Calendar from SmartGWT library, but with Google Gears backend. I've read these threads:
http://forums.smartclient.com/showthread.php?t=7136&highlight=Calendar
http://forums.smartclient.com/showthread.php?t=1192
http://forums.smartclient.com/showthread.php?t=4814&page=2
and they were very helpful. I have almost finished my work.
But I have big problem regarding the use of my application in real environments - I cannot get an idea of how to do paging in Calendar. It was fairly easy with grid and everything worked fine (startRow,endRow,totalRows). But for calendar whey I try to use (startRow,endRow,totalRows) I get the following results:
- If I set totalRows to what I'm just returning - the calendar will never ask me for more events and nothing except for the current view will be available in the GUI
- If I set total rows to some big value, then the framework keeps calling my backend (actually DataSource.getClientOnlyResponse()) for more rows infinitely.
- Is there anyone who can explain me how does this caching mechanism work so that I could implement my DataSource for calendar with paging?
- What can I do to make the framework trigger one backend query per calendar view?
- Will it still work when the user navigates over the calendar?
In my application I need to use Calendar from SmartGWT library, but with Google Gears backend. I've read these threads:
http://forums.smartclient.com/showthread.php?t=7136&highlight=Calendar
http://forums.smartclient.com/showthread.php?t=1192
http://forums.smartclient.com/showthread.php?t=4814&page=2
and they were very helpful. I have almost finished my work.
But I have big problem regarding the use of my application in real environments - I cannot get an idea of how to do paging in Calendar. It was fairly easy with grid and everything worked fine (startRow,endRow,totalRows). But for calendar whey I try to use (startRow,endRow,totalRows) I get the following results:
- If I set totalRows to what I'm just returning - the calendar will never ask me for more events and nothing except for the current view will be available in the GUI
- If I set total rows to some big value, then the framework keeps calling my backend (actually DataSource.getClientOnlyResponse()) for more rows infinitely.
- Is there anyone who can explain me how does this caching mechanism work so that I could implement my DataSource for calendar with paging?
- What can I do to make the framework trigger one backend query per calendar view?
- Will it still work when the user navigates over the calendar?
Comment