Masked Edit in DataForm causes the "Dirty" flag

5 posts, 0 answers
  1. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 14 Aug 2009 Link to this post

    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!
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 18 Aug 2009 Link to this post

    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.
  3. DevCraft banner
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 18 Aug 2009 Link to this post

    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.
  5. Gabe
    Gabe avatar
    3 posts
    Member since:
    Sep 2012

    Posted 03 Jan 2012 Link to this post

    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?
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Jan 2012 Link to this post

    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 >>

Back to Top
DevCraft banner