This question is locked. New answers and comments are not allowed.
Greetings.
I'm using a Dataform (really need full annotations support in your RadDataForm!) with a RadGridView & RadDataPager in an Mvvm Light application. The DataForm/RadGridView/RadDataPager are all bound to a QueryableCollectionView sitting in my ViewModel, and my DataPager PageSize property is set to 10.
If my collection has <10 items, I have no problem adding a new item to the collection. However, once I get to 10 items, then click the + sign in my dataform to add a new item, I get the following error:
Error: Unhandled Error in Silverlight Application
Code: 4009
Category: ManagedRuntimeError
Message: Element is already the child of another element.
I tried binding an EventToCommand on the BeginningEdit event, and adjusting the page size accordingly, but that command never triggers. I'm rather at a loss on how else to proceed.
I have a sample project already created that demonstrates this, but I'm not able to attach the file. If you have any repository I can post/email into, I'm happy to do so.
Thanks for your help!
Scott
I'm using a Dataform (really need full annotations support in your RadDataForm!) with a RadGridView & RadDataPager in an Mvvm Light application. The DataForm/RadGridView/RadDataPager are all bound to a QueryableCollectionView sitting in my ViewModel, and my DataPager PageSize property is set to 10.
If my collection has <10 items, I have no problem adding a new item to the collection. However, once I get to 10 items, then click the + sign in my dataform to add a new item, I get the following error:
Error: Unhandled Error in Silverlight Application
Code: 4009
Category: ManagedRuntimeError
Message: Element is already the child of another element.
I tried binding an EventToCommand on the BeginningEdit event, and adjusting the page size accordingly, but that command never triggers. I'm rather at a loss on how else to proceed.
I have a sample project already created that demonstrates this, but I'm not able to attach the file. If you have any repository I can post/email into, I'm happy to do so.
Thanks for your help!
Scott