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

Radtextbox texmode password and numeric

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 02 Jun 2011, 09:37 AM
Hi,

I am using RadTextbox in our application . I have a Radwindow on which we can add user. The problem is that a linkbutton on that window is used to generate password .User can edit the system generated password and can save it. For example: if the system generated a password ‘YYUTRE’. Now user modified the password to ‘YYUTREQWE’. System will display all the characters of the password which are system generated and all the manually entered characters as hidden.For example: If the user clicks on ‘Generate Password’ and system generates ‘YYUTRE’ and then user adds ‘YTU’ to it. Then the password will look like YYUTRE●●●.  I want to achieve this functionality . Please suggest how can I make the RadTextbox TextMode both text and password.


Thanks,
Rahul

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jun 2011, 11:30 AM
Hello Rahul,

As far as I know this property is not directly available. One suggestion is to use RadMaskedTextBox. You can find more on this from the following forum thread.
Multiple mask types.

Thanks,
Shinu.
0
Rahul
Top achievements
Rank 1
answered on 02 Jun 2011, 04:30 PM
Hi Shinu,

Thanks for the reply , as per your reply we need to add multi  masked textbox and for multimasked textbox we need to set fixed lenght and position for the  generated password part and user entered values, but in our application the user can edit the password from any posotion in the textbox i. e the text can be entered at any position in the in the password textbox e.g If the auto - generated password is 123456478 , then the user can enter password at any posotion in this generated field i.e 1*23*45678** and we need to achieve this functionality. Please suggest.



Thanks,
Rahul.
0
Tsvetina
Telerik team
answered on 07 Jun 2011, 11:57 AM
Hi Rahul,

Such specific scenario would require custom code in order to be achieved. You could handle the textbox's (a regular RadTextBox for example) events in such a way that you have a temp value which is updated on each char input. Once the new char is saved on changing, you could replace it in the textbox value with a masking char.

If you decide to implement this through the client API of the RadTextBox control you could use our documentation as a reference:
RadTextBox Client Object

Regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Rahul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rahul
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or