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

UseSystemPasswordChar property for RadTextBox?

7 Answers 213 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Ludovic
Top achievements
Rank 2
Ludovic asked on 10 Aug 2012, 04:27 AM
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

7 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 14 Aug 2012, 03:07 PM
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 >>
0
Ludovic
Top achievements
Rank 2
answered on 15 Aug 2012, 02:59 AM
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


0
Boryana
Telerik team
answered on 17 Aug 2012, 11:13 AM
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 >>
0
Ludovic
Top achievements
Rank 2
answered on 20 Aug 2012, 03:21 AM
Dear Boryana,

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

Thank you.

LB
0
Adam P
Top achievements
Rank 2
answered on 31 Jan 2014, 09:14 PM
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. =)
0
Adam P
Top achievements
Rank 2
answered on 31 Jan 2014, 09:21 PM
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
0
Stefan
Telerik team
answered on 03 Feb 2014, 11:33 AM
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 >>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Ludovic
Top achievements
Rank 2
Answers by
Boryana
Telerik team
Ludovic
Top achievements
Rank 2
Adam P
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or