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

How to: with Rad Text Box

3 Answers 85 Views
Input
This is a migrated thread and some comments may be shown as answers.
grand lorie
Top achievements
Rank 1
grand lorie asked on 09 Mar 2010, 01:11 PM
Hi

How to do this with Rad Text Box:

1- Prevent Data duplication when insert a new record (something like user name) , so say if the user entered a user name which is already exist then he ll get an error message (i know i can do that back in the database by making the column unique but then on the client side the sql error message will appear which will look ugly.

2- is there any option to make all the inputs UPPER CASE regardless the user inputs.

Thanks

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Mar 2010, 05:23 PM
Hi grand lorie,

This task is out of the scope of RadTextBox - you need to check for duplicates yourself with a separate query (during postback) and force the user to enter another value if the username exists.

All the best,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
grand lorie
Top achievements
Rank 1
answered on 09 Mar 2010, 05:38 PM
Thanks Demo for your answer

but how can i do that with the query? can you give some lights?

is there anyway to do that with the validation controls? to compare the inputs to the column data?

I think this is very important feature which should be included! for a shopping site (as example) which has a lot of products and keep adding, it is very important to make sure that this new item is not already on the database..!!

Lorie
0
Dimo
Telerik team
answered on 10 Mar 2010, 03:48 PM
Hello,

Well, after postback you should get the input value with RadTextBox1.Text and make a SELECT query in the datasource to check whether this value is already present.

This is not something RadTextBox should do automatically, as it doesn't know anything about how its value is handled by the application.

All the best,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
grand lorie
Top achievements
Rank 1
Answers by
Dimo
Telerik team
grand lorie
Top achievements
Rank 1
Share this question
or