This is a migrated thread and some comments may be shown as answers.

Masked Edit in DataForm causes the "Dirty" flag

4 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 14 Aug 2009, 04:52 PM
If I create a DataForm and place a header and a MS TextBox in and connect it to a DataSource, If I go to that TextBox and begin to enter data or change data, I get an "*" next to header that DataForm is dirty and data has changed and then the "Submit" and "Cancel" button become activated.

However, if I replace MS TextBox with Telerik Maskedit, I get an "*" next to my header indicating the DataForm has changed, however none of the buttons are enabled, because nothing has truly changed yet.

Further testing shows that this problem appears if the field that the maskedit is bounded is set as "Required" in RIA metadat, the "*" will show up. if I remove the "Required" attribute, then the "*" will not show.

Is this a bug?

Secondly, if a field is required, and the first time user moves to a field it gets error that the field is Required. This is missleading, the error show show only if the user is tabbing out. Just like MS TextBox behaviour. Please advise!

4 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 18 Aug 2009, 01:45 PM
Hi Ben,

Thank you for your feedback. Indeed RadMaskedTextBox experiences some problems when placed in a DataForm control. For that, we will try to make RadMaskedTextBox compatible with the DataForm control as soon as possible.

The problem is that the MaskedTextBox will currently accept a null for its Value but it will not keep it. What happens now is that current mask will set the Value of the MaskedTextBox to a default constant, this being "", 0, 0.0 or a specific date for the Date mask if it is given a null value. So if you bind to a property that is initially null, then it will quickly be changed to something else. This is undesirable and it will be fixed.

The Value of the MaskedTextBox should be updated only when the user changes something and unfortunately this is not happening now.

Your Telerik Points have been updated for your feedback,

Greetings,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ben Hayat
Top achievements
Rank 2
answered on 18 Aug 2009, 01:57 PM
Kiril, thank you for detail answer. As I work further with RIA, DataForm and your controls, if I find other issues, I'll report them.
0
Gabe
Top achievements
Rank 1
answered on 04 Jan 2012, 02:08 AM
What is the current status of using a masked text box in a data form? Is this possible yet, and if so how would I go about it?
0
Petar Mladenov
Telerik team
answered on 06 Jan 2012, 03:11 PM
Hi Gabe,

 The issues that Kiril has described are specific for the RadMaskedTextBox control and they are fixed in the RadMaskedInput suite of controls. So please give them a try and let us know if you need further assistance using them.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
Ben Hayat
Top achievements
Rank 2
Gabe
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or