Dynamic Pages

3 posts, 1 answers
  1. Lone
    Lone avatar
    15 posts
    Member since:
    Mar 2009

    Posted 14 Feb 2010 Link to this post

    I am creating a custom book builder. The user will enter relevant data on each page, which will be saved and later data bound to the book for future representation. i have set templates for both left and right pages. I want the user to set s may page s he/she wants, and not limit it. At first, I though it would be easy to generate new pages with a click, but I find it  little hard to do. Help me out please. What is the easiest way to do this dynamically and pro-grammatically (C# code).
  2. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 14 Feb 2010 Link to this post

    Lone, I think I had seen a sample much earlier on that showed how to create pages dynamically. Go to the beginning of this thread and check the posts and you'll see the sample.
    [HINT] this is why we need Code Inventory... :-)
  3. Answer
    Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 15 Feb 2010 Link to this post

    Hello Lone,

    Adding new pages to the Book is as simple as adding a new item to the collection the Book is being bound to. Please have a look at the attached sample project as it demonstrates this scenario. Let me know if you find something unclear.

    @Ben, indeed, a code inventory is a great idea. We have something in mind for the future. :)

    Sincerely yours,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top