Color Picker Validation

3 posts, 0 answers
  1. Deboshree
    Deboshree avatar
    11 posts
    Member since:
    Jul 2008

    Posted 29 Dec 2008 Link to this post

    Hi,
    I have two ColorPicker, i don't want to allow anyone to select same color. Like i have a DisplayColor and TextColor, so the color should not be same.
    Thank you. 
  2. Deboshree
    Deboshree avatar
    11 posts
    Member since:
    Jul 2008

    Posted 29 Dec 2008 Link to this post

    HI,
     Also i want to ask that can't we use a compare valildator for comparison?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 02 Jan 2009 Link to this post

    Hi Deboshree,
    You cannot use a CompareValidator with the RadColorPicker in this case. You can use a CustomValidator however, in order to check whether the SelectedColor property of the two ColorPickers has the same value. You can read more about the CustomValidator in MSDN.

    All the best,
    Tsvetie
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top