When using the QueryableDomainServiceCollectionView to add a new item, how can i get the Id of that item?
If after SubmitChanges() i call the CurrentItem property, will that be the newly created item? If so i can simply take the ID from that.
I am not sure what the behaviour is here.
Thanks
3 Answers, 1 is accepted
0
Rossen Hristov
Telerik team
answered on 02 Nov 2011, 10:39 AM
Hi Andrew,
How are you adding this new item? Don't you have a reference to its instance? Can't you save a reference to this item and then after you call SubmitChanges go and check its ID.
In case that does not help, could you please send us a small dummy project that show what you are doing and we will try to help.
Greetings,
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>