It doesn't show how to insert new rows, or how to delete existing rows.
I've been trying to work it out for some hours, now, and am back where I started.
Any ideas?
5 Answers, 1 is accepted
Please take a look at this demo for a reference as well.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Am I correct in thinking that the DataForm, when used as a row detail, doesn't have insert or delete functionality, because it's bound to a single record? And that we'd need to tie the insert and delete functionality to the GridView?
In the demo both RadGridView and RadDataForm are bound to ICollectionView that enables their synchronization. You wan insert an item from the two controls as well. Do you experience any different behavior on your side ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Whether the form would appear within the grid, as row detail, or below the grid, as in you synch demo, is, in my mind, purely a stylistic concern. Except, of course, that I'd not expect navigation controls on the form, if it was appearing as row detail. And from that it would follow that the insert and delete behaviors would have to be tied to the grid, and not to the form.
Still, I have been trying to get your synchronization example to work, and I've been having an odd problem with adding new records, that I have not been able to replicate using your demo code.
http://www.telerik.com/community/forums/wpf/gridview/icollectionview-synchronization-with-dataform.aspx
Basically, when RadDataForm is defined as illustrated in the demo, it has ItemsSource (the same as the one of the grid) and you can insert and delete items from it. However, when it is defined as in this case, it has only CurrentItem.
The idea of the demo is to illustrate how with the help of ICollectionView that keeps track of the current item, you can synchronize the two controls and add or remove item either from RadDataForm or with RadGridView, or from both.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>