This question is locked. New answers and comments are not allowed.
Georges Nguyen
Top achievements
Rank 1
Georges Nguyen
asked on 11 Mar 2011, 07:54 PM
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.
> ~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.
5 Answers, 1 is accepted
0
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
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!
0
Hello Georges Nguyen,
Boby
the Telerik team
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.
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
0
Georges Nguyen
Top achievements
Rank 1
answered on 11 Apr 2011, 09:52 PM
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.
0
Georges Nguyen
Top achievements
Rank 1
answered on 11 Apr 2011, 10:48 PM
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?
0
Hello Georges Nguyen,
Iva
the Telerik team
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.
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