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

Dynamic Pages

2 Answers 104 Views
Book
This is a migrated thread and some comments may be shown as answers.
Lone
Top achievements
Rank 1
Lone asked on 14 Feb 2010, 12:50 PM
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 Answers, 1 is accepted

Sort by
0
Ben Hayat
Top achievements
Rank 2
answered on 14 Feb 2010, 06:25 PM
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... :-)
..Ben
0
Accepted
Kiril Stanoev
Telerik team
answered on 15 Feb 2010, 12:53 PM
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.
Tags
Book
Asked by
Lone
Top achievements
Rank 1
Answers by
Ben Hayat
Top achievements
Rank 2
Kiril Stanoev
Telerik team
Share this question
or