Hi Kiril;
I would like to ask you the following question. Let's say we bind a RADBook to a set of collection of objects that were returned from RIA services. And we are using ItemsTemplate to layout the data. However, I want to create a set of navigation buttons for the book to go First, Last, Prev. and next.
When we bind the data to the book, how can we know how many pages will take to show all the data? So this way, I would know what my last page number would be? And also, when I'm calculating the "Next" page number, I have to make sure I'm not exceeding the total Pages.
In CoverFlow, if you exceed the total number of items, the CF engine will return you back to the first page. This would be nice to add to the book as well.
According to the logic of your book framework, when jumping to a page, we always need to jump to the "Right side page" index. So, if a user wants to go to page 21, I need to check to see if the desired number is ODD or EVEN. If it's ODD, then add "1" to it, to ensure it's pointing to the right side page.
I haven't tried yet, but what would happen if I tell the book to go t o page 21? :-)
Thanks!
I would like to ask you the following question. Let's say we bind a RADBook to a set of collection of objects that were returned from RIA services. And we are using ItemsTemplate to layout the data. However, I want to create a set of navigation buttons for the book to go First, Last, Prev. and next.
When we bind the data to the book, how can we know how many pages will take to show all the data? So this way, I would know what my last page number would be? And also, when I'm calculating the "Next" page number, I have to make sure I'm not exceeding the total Pages.
In CoverFlow, if you exceed the total number of items, the CF engine will return you back to the first page. This would be nice to add to the book as well.
According to the logic of your book framework, when jumping to a page, we always need to jump to the "Right side page" index. So, if a user wants to go to page 21, I need to check to see if the desired number is ODD or EVEN. If it's ODD, then add "1" to it, to ensure it's pointing to the right side page.
I haven't tried yet, but what would happen if I tell the book to go t o page 21? :-)
Thanks!