Dynamic Loading of Pages

8 posts, 0 answers
  1. Rhek
    Rhek avatar
    18 posts
    Member since:
    Aug 2012

    Posted 05 Nov 2009 Link to this post

    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
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 05 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. Paul
    Paul avatar
    37 posts
    Member since:
    May 2009

    Posted 05 Nov 2009 Link to this post

    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
  5. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 05 Nov 2009 Link to this post

    @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
  6. Paul
    Paul avatar
    37 posts
    Member since:
    May 2009

    Posted 05 Nov 2009 Link to this post

    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
  7. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 05 Nov 2009 Link to this post

    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!
  8. Tyrin-J
    Tyrin-J avatar
    9 posts
    Member since:
    Apr 2008

    Posted 16 Dec 2009 Link to this post

    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
  9. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 21 Dec 2009 Link to this post

    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.
Back to Top
DevCraft banner