This is a migrated thread and some comments may be shown as answers.

Dynamic Loading of Pages

7 Answers 163 Views
Book
This is a migrated thread and some comments may be shown as answers.
Rhek
Top achievements
Rank 1
Rhek asked on 05 Nov 2009, 06:12 AM
Hello,

Our website sells books and I have seen on other book websites the flash equivalent of the book control. So glad to see this in Silverlight. One of our books is about 300 pages. What we want to do is allow the user to flip through all 300 pages so they can see the layout and photographs but the text would be too small to read. I have each page as a png file, which is what the flash page flipper uses.

I want to load each page as the page is turned to and figure that this would be something I would control in the code-behind.  Can you provide or point me to a sample for dynamically loading pages on demand?

Thanks so much for this control!
Rhek

7 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 05 Nov 2009, 01:11 PM
Hi Rhek,

Thank you for your interest in RadBook. Future versions of the book will include virtualization and load on demand, but for the moment you can bind RadBook to an ObservableCollection and dynamically add items on a page flip. I have attached a sample project demonstrating this functionality. Let me know how it works for you.
Since this is RadBook's first version, I'd like to ask for any feedback you might have. It would be highly appreciated if you could share features that are currently missing and you'd like to see them implemented in the future.

Kind regards,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paul
Top achievements
Rank 1
answered on 05 Nov 2009, 04:59 PM
Hi Kiril,

Great first release of the Book control ... I do have some thoughts.

SharePoint is a big platform for business users ... tons of Office files are getting stored in SharePoint.  Many times corporations want a read-only presentation level version of their Office files, usually for investors, board members, management, etc.  In my case, I have scientists that need to generate a lot of reports and they'll store them into SharePoint.  These reports (mostly Word docx files) can be read by a wide audience.

Is it feasible to have the Book control be able to load Office files?  I'd be concerned about performance though.  Maybe provide a conversion lib with the suite?  Any ideas around this?

Thanks,
Paul from Minneapolis
0
Ben Hayat
Top achievements
Rank 2
answered on 05 Nov 2009, 06:57 PM
@Paul;

One essential point that you should take to consideration when trying to show data that might be a combination of multiple type of entities, i.e. Text, image, fonts, vector graphics and etc., is the ability to pull them all together to show in the book. This could become challenging at times. So, the best solution would be to have a document that embeds all these files, i.e. PDF or XPS. Since the XPS export is available to all office products, it's best to convert it as to one XPS file.

Then, as the book mature, either through telerik book, or third part control to show the xps, rather than trying to glue all the pieces together.

Hope this helps!
..Ben
0
Paul
Top achievements
Rank 1
answered on 05 Nov 2009, 07:27 PM
Ben,

Ok thanks. What I'm considering is, based upon a collection of files in SharePoint, generating server-side (from a user triggered action) a "published" version of it into another SharePoint folder at a different location.

Were you saying that the Book control natively displays PDFs?  We have several PDF tools here.

The other thought I had was buying a format converter that can pipe a wide range of file types and return them as PNG format.

Thanks,
Paul from Minneapolis
0
Ben Hayat
Top achievements
Rank 2
answered on 05 Nov 2009, 07:57 PM
Hi Paul;

If you can control and manage the files in a controlled location, then you have your solution today.

No, I was not saying whether Telerik book will or will not support PDF, that's something the team will decide, but I was saying for the future, I might be able to display an XPS file in each page using HTMLPlaceHolder. The XPS embeds everything into one file.

I don't advise PNG, because it's not resolution flexible like PDF or XPS. PNG would not make a good choice, because you either end up with large files or not good quality in hi res cases.

But your first option is best for now!
0
Tyrin-J
Top achievements
Rank 1
answered on 16 Dec 2009, 04:42 PM
To support Ben's point, PNG would be a very bad choice since you would loose the ability to search which is key in electronic books.

Tyrin-J
0
Valentin.Stoychev
Telerik team
answered on 21 Dec 2009, 07:24 AM
Hello Tyrin-J,

these are nice suggestions - I'm logging them. They will not be implemented with the next release(Q1).

We will investigate further on them.

Greetings,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Book
Asked by
Rhek
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Paul
Top achievements
Rank 1
Ben Hayat
Top achievements
Rank 2
Tyrin-J
Top achievements
Rank 1
Valentin.Stoychev
Telerik team
Share this question
or