How to: with Rad Text Box

4 posts, 0 answers
  1. grand lorie
    grand lorie avatar
    55 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2010 Link to this post

    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
  2. Dimo
    Admin
    Dimo avatar
    8485 posts

    Posted 09 Mar 2010 Link to this post

    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.
  3. grand lorie
    grand lorie avatar
    55 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2010 Link to this post

    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
  4. Dimo
    Admin
    Dimo avatar
    8485 posts

    Posted 10 Mar 2010 Link to this post

    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.
Back to Top