RadDataForm Bug? Maybe

2 posts, 0 answers
  1. Yaghiyah
    Yaghiyah avatar
    4 posts
    Member since:
    Jul 2014

    Posted 29 Aug 2014 Link to this post

    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();
            }
        }
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 02 Sep 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top