This is a migrated thread and some comments may be shown as answers.

RadDataForm Bug? Maybe

1 Answer 80 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Yaghiyah
Top achievements
Rank 1
Yaghiyah asked on 29 Aug 2014, 03:44 PM
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.  

private void UserDetailsRadDataForm_OnDeletedItem(object sender, ItemDeletedEventArgs e)
    {
        try
        {
            SessionManager.Bind();
            var user =  UserDetailsRadDataForm.CurrentItem as UserModel;
            _userDetailsViewModel.DeleteUser(user);
        }
        finally
        {
            SessionManager.Unbind();
        }
    }

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 02 Sep 2014, 07:44 AM
Hello Yaghiyah,

I tried to reproduce the mentioned behavior, however I was unsuccessful. 

Could you please provide us with more information about your case and if possible edit the attached sample project in a way that it demonstrates the issue?

Regards,
Boris Penev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
DataForm
Asked by
Yaghiyah
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or