Hi
I'm using a RadRicjTextBox in a WPF with DataBinding and ValidatesOnDataErrors, and I'm trying to add validation to ensure that the user has acutally typed something into the comment
Here is the XAML snippet...
<
telerik:HtmlDataProvider
Grid.Column
=
"1"
Grid.Row
=
"3"
x:Name
=
"HtmlProvider2"
RichTextBox
=
"{Binding ElementName=CommentsRichTextBox}"
Html
=
"{Binding Response, Mode=TwoWay,ValidatesOnDataErrors=True}"
/>
<
telerik:RadRichTextBox
Height
=
"92"
Grid.Column
=
"1"
Grid.Row
=
"3"
Margin
=
"2"
x:Name
=
"CommentsRichTextBox"
/>
But I'm not sure how to validate the contents in my IDataErrorInfo code, I can't just check to see if the Response field is empty, because as soon as you type anything, and then delete it, the field contains all the HTML wrappings.
Am I missing something or is there a way to do this, I had thought I should try and convert the HTML to Text somehow and then check, but I don't want that to happen with every key press (I'm also not sure how to go about it
Thanks in advance
Paul