RadMaskedTextInput Boundary Issue

4 posts, 1 answers
  1. Imdad Turi
    Imdad Turi avatar
    29 posts
    Member since:
    Aug 2013

    Posted 26 May 2014 Link to this post

    Hello Every 1 and Telerik!

    I have so many RadMaskedTextInput in my application. Most of them is ReadOnly property "True". By making ReadOnly property equal to True, the boundary gets invisible. i tried by modifying Border thickness and Color but it doesn't reflect changes. To get better idea of the issue please checkout the attached snapshot. i also tried using style tags.

    Thanks.
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 May 2014 Link to this post

    Hello Imdad,

    By design in Windows8, Office2013 and Windows8Touch themes, there is no border in the ReadOnly VisualState of the RadMaskedInputControls. You have several options:
    • Edit the default ControlTemplate of the RadMaskedInputBase and control what is changing in ReadOnly VisualState
    • You can consider using IsEnabled = False instead of IsReadOnly = True.
    • You can add Border on top of the MaskedInput in your application. the bind the Visibility of the border to the IsReadOnly property of the MaskedInput via telerik's BooleanToVisibilityConverter


    Regards,
    Petar Mladenov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
  4. Imdad Turi
    Imdad Turi avatar
    29 posts
    Member since:
    Aug 2013

    Posted 28 May 2014 in reply to Petar Mladenov Link to this post

    Hello Mladenov,

    Thank so much for your response.

    can you please a little guide me how to achieve first option , i mean how to edit default ControlTemplete. IsEnabled = false doesn't fit clients requirements, the font seem dull. and the third is so much work i am working on very big product having a lot of such MaskedInputs.
     
    thank you.

    Imdad
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 30 May 2014 Link to this post

    Hello Imdad,

    I encourage to you to check this help article which show how to use implicit styles and how to edit control templates:
    Setting a theme using Implicit Styles
    Editing Control Templates

    Regards,
    Petar Mladenov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top