Current filter:
                                You should refresh the page.
                                0
                                  • Hi
                                    I have the following TextEdit
                                    <dxe:TextEdit Grid.Row="1"
                                                                              Grid.Column="3"
                                                                              AllowNullInput="True"
                                                                              EditValue="{Binding Path=Position,
                                                                                                  ValidatesOnDataErrors=True,
                                                                                                  ValidatesOnExceptions=True,
                                                                                                  NotifyOnValidationError=True,
                                                                                                  Mode=TwoWay,
                                                                                                  UpdateSourceTrigger=PropertyChanged}"
                                                                              FontSize="8"/>
                                    When a user tries to change this value it first delete it and then type the new one.
                                    But when it deletes it it's raising an error because the database field (EF object mapped) doesn't accept null values.
                                    How can I show just the validating error icon next to textedit ?
                                    Thank you

                                0

                                Hello Sorin,

                                Thank you for your question. I believe that the issue will be resolved if you set the UpdateSourceTrigger to LostFocus. This prevents TextEdit.EditValue from being posted to the Position field. Let me know if you need further assistance.

                                Thank you, Marina

                                0

                                Hi
                                Thank's for reply but it's not the best solution for me.
                                Indeed it's not raising any error but on LostFocus it raises.
                                And I need to see Validation in place.
                                I've even extended my Entity classes with IDataErrorInfo but with this kind of update it's not working.
                                With a new class implementing IDataErrorInfo it's working.
                                Any other ideas ?
                                I think it's something from Entity Framework

                                0

                                I found that if I hit continue after that error in debugger it's showing the error

                                0

                                It's all about Binding to an non nullable property from an entity based on an non nullable column from a table.

                                0

                                Hello Sorin,

                                Thank you for your feedback. Would you please provide a small sample for us? We will do our best to overcome this issue.

                                Thank you, Marina

                                0

                                It's a very big project with a SQL Server database.
                                Just try to bind an TextEdit to an EF4 Entity based on a SQL Table.
                                One field from table should not accept null.
                                That's all
                                Thank's

                                0

                                Thank you for your feedback. We are working on this issue. Please bear with us.

                                0

                                I found a solution
                                but it's not the best

                                Just put NullValue = ""

                                and in my partial class which implements IDataErrorInfo

                                if (string.IsNullOrEmpty(Position))

                                yield return new RuleViolation("Error", "Position");

                                It could be better that by design to throw first validation.

                                Thank's

                                0

                                Please accept my apologies for the delay. We were overloaded with requests. I suggest that you try to use the ShowNullTextForEmpty property. This should fix the issue. I am looking forward to hearing from you.

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.