Items collection must be empty before using ItemsSource.

3 posts, 0 answers
  1. Madhu
    Madhu avatar
    3 posts
    Member since:
    Jun 2010

    Posted 18 Feb 2011 Link to this post

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

    Posted 21 Feb 2011 Link to this post

    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
  3. DevCraft banner
  4. Madhu
    Madhu avatar
    3 posts
    Member since:
    Jun 2010

    Posted 21 Feb 2011 Link to this post

    Thank you for the reply :) 
Back to Top