UseSystemPasswordChar property for RadTextBox?

8 posts, 0 answers
  1. Ludovic
    Ludovic avatar
    12 posts
    Member since:
    Nov 2011

    Posted 09 Aug 2012 Link to this post

    Hello,

    I am wondering if I can use the UseSystemPasswordChar property with the Radtextbox. It works with the traditional texbox but does not seem to work with the radtexbox. 

    For the moment, I am using an alternative solution which is:
    radTextBoxNewPass.PasswordChar = '*';

    Thank you,
    LB

  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 14 Aug 2012 Link to this post

    Hello Ludovic,

    Thank you for contacting us.

    I was not able to replicate the issue you experience. The PasswordChar property of RadTextBox seems to be working properly on my side. Would you please have a look at the attached project and let me know what I should modify in order to reproduce the issue.

    In case you are using RadTextBoxControl, the PasswordChar property has already been suggested as a feature request. Feel free to vote for it here: http://www.telerik.com/support/pits.aspx#/details/Issue=12265

    I am looking forward to your reply.

    Greetings,
    Boryana
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ludovic
    Ludovic avatar
    12 posts
    Member since:
    Nov 2011

    Posted 14 Aug 2012 Link to this post

    Dear Boryana,

    As I wrote in my previous message PasswordChar works fine and I use it as alternative but I would like to use UseSystemPasswordChar property with the RadTextBox like this:

    radTextBoxNewPass.UseSystemPasswordChar = true;

    It works with the normal TextBox but not with the RadTextBox.

    Best regards,
    LB


  5. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 17 Aug 2012 Link to this post

    Hello Ludovic,

    Thank you for writing back.

    You can set the UseSystemPasswordChar property of the hosted TextBox item. Here is a sample snippet:
    ((TextBox)this.radTextBox1.TextBoxElement.TextBoxItem.HostedControl).UseSystemPasswordChar = true;

    I hope this addresses your question. Let me know if you encounter further issues.

    Kind regards,
    Boryana
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  6. Ludovic
    Ludovic avatar
    12 posts
    Member since:
    Nov 2011

    Posted 19 Aug 2012 Link to this post

    Dear Boryana,

    Your code snippet works perfectly. That's what I was looking for.

    Thank you.

    LB
  7. Adam P
    Adam P avatar
    27 posts
    Member since:
    Jan 2014

    Posted 31 Jan 2014 Link to this post

    Thank you for this, it helped me as well. 

    I just wanted to chime in and say thanks and say that this seems rather unintuitive, and seeing as how you guys expose most of the other native "HostedControl" properties, it just seems natural to expose this one, too.  Just my $0.02. =)
  8. Adam P
    Adam P avatar
    27 posts
    Member since:
    Jan 2014

    Posted 31 Jan 2014 Link to this post

    If you think it makes sense, please vote for this feature request to add the property to the RadTextBox object:

    http://feedback.telerik.com/Project/154/Feedback/Details/114323-expose-usesystempasswordchar-property-on-radtextbox
  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 03 Feb 2014 Link to this post

    Hello,

    Thank you for your suggestion Adam. We also consider it useful, hence the feedback item is now approved. 

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready