Can some please help me, I cannot seem execute a delete operation when one item is inside my observable collection and binds to the RadDataForm, however when I bind 2 or more items I can then perform delete up until one item remains then “CurrentItem” is null. why is that ???
The offending snippet takes place here.
The offending snippet takes place here.
private
void
UserDetailsRadDataForm_OnDeletedItem(
object
sender, ItemDeletedEventArgs e)
{
try
{
SessionManager.Bind();
var user = UserDetailsRadDataForm.CurrentItem
as
UserModel;
_userDetailsViewModel.DeleteUser(user);
}
finally
{
SessionManager.Unbind();
}
}