DataForm containing RadRichTextBox automatically cancelling edit on load

6 posts, 0 answers
  1. Georges Nguyen
    Georges Nguyen avatar
    4 posts
    Member since:
    Feb 2010

    Posted 11 Mar 2011 Link to this post

    I have a DataForm that contains a RadRichTextBox and whenever I view the DataForm with AutoEdit="True", the DataForm is automatically cancelling the edit. If I set AutoEdit="False" and then click the edit button myself, there is no problem, and if I remove the RadRichTextBox, there is also no problem. But I would like both. The call stack at the EditEnding event is:

    > ~My Code~(object sender, System.Windows.Controls.DataFormEditEndingEventArgs e) Line 64 C#
      System.Windows.Controls.Data.DataForm.Toolkit!System.Windows.Controls.DataForm.OnItemEditEnding(System.Windows.Controls.DataFormEditEndingEventArgs e) + 0x46 bytes 
      System.Windows.Controls.Data.DataForm.Toolkit!System.Windows.Controls.DataForm.CancelEdit() + 0x78 bytes 
      System.Windows.Controls.Data.DataForm.Toolkit!System.Windows.Controls.DataForm.OnContentRootElementLostFocus(object sender, System.Windows.RoutedEventArgs e) + 0xa4 bytes 

    I am using Q3 2010 SP1.
  2. Ivailo Karamanolev
    Admin
    Ivailo Karamanolev avatar
    276 posts

    Posted 17 Mar 2011 Link to this post

    Hi Georges Nguyen,

    The issue seems to be with the way RadRichTextBox handles focus internally. It uses a TextBox for its caret and whenever the editor receives focus, it passes it to the TextBox. However, the DataForm obviously doesn't work correctly in that case. We'll definitely research the possibilities, but unfortunately, there's no workaround currently.

    Greetings,
    Ivailo
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Boby
    Admin
    Boby avatar
    763 posts

    Posted 08 Apr 2011 Link to this post

    Hello Georges Nguyen,

    We are in process of investigating the problem again, and cannot reproduce it with 2010 Q3 SP1 nor with 2011 Q1 version. I am attaching a sample project (built against  Q3 SP1 version) to verify at your side.
    It would be much appreciated to send us a sample project that reproduces the issue, as there are various ways to customize data forms to include RadRichTextBox.

    Best wishes,
    Boby
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Georges Nguyen
    Georges Nguyen avatar
    4 posts
    Member since:
    Feb 2010

    Posted 11 Apr 2011 Link to this post

    The bad behavior seems to occur when the DataForm is bound to an WCF RIA Services Entity object. The DataForm seems to have some special behavior for those objects or one of the interfaces it implements, at least that is my guess. I will work on creating a sample project with the problem, but I'm only familiar with using Domain Services backed by LINQ to Entities and I don't know if that would be appropriate for a sample project.
  5. Georges Nguyen
    Georges Nguyen avatar
    4 posts
    Member since:
    Feb 2010

    Posted 11 Apr 2011 Link to this post

    I've also discovered the bug only appears when in a Child Window. I have been able to reproduce it now, but I am unable to attach .zip files to this post. Is there another way I can send a sample project?
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 14 Apr 2011 Link to this post

    Hello Georges Nguyen,

    Thank you for getting to us about this problem. 
    Since your support has expired, you can send us a General Feedback and attach the demo to the post.
    Looking forward to hearing from you again.

    All the best,
    Iva
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top