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

Items collection must be empty before using ItemsSource.

2 Answers 871 Views
Book
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 18 Feb 2011, 10:13 PM
hi
 I am trying to open a document in radbook control using rich text box integration method with the book , but it only allows me to bind my source to a book item source with no items in it .
when i try to bind the book.itemSource = bindingSource; i get this error "Items collection must be empty before using ItemsSource."
Is there anyway  to bind that source when i have already created the items in radbook?
Thank you 
Madi

2 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 21 Feb 2011, 10:18 AM
Hello Madhu,

Unfortunately, it is not possible to bind an ItemsControl (ex: RadBook) when there are already items in the Items collection. You will either have to clear the Items collection before binding or add the items from the Items collection to the business collection and then pass the business collection to the ItemsSource.

All the best,
Kiril Stanoev
the Telerik team
0
Madhu
Top achievements
Rank 1
answered on 21 Feb 2011, 05:12 PM
Thank you for the reply :) 
Tags
Book
Asked by
Madhu
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Madhu
Top achievements
Rank 1
Share this question
or