INotifyDataErrorInfo and RadDropDownButton

5 posts, 1 answers
  1. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 22 Oct 2010 Link to this post

    Hi,

    Is possible to use INotifyDataErrorInfo interface to validate RadDropDownButton.

    For example inside drop-down content I have list of items.
    When user selects item, drop-down content set to item name.

    If drop-down content is string.Empty it should be invalid.

    Thanks, Alexey
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 Oct 2010 Link to this post

    Hi Alexey Oyun,

    I am not sure that I understand your scenario correctly. Can you please have a look at the attached project and let me know if this is close to what you had in mind?

    Regards,
    Tina Stancheva
    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. DevCraft banner
  4. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 28 Oct 2010 Link to this post

    Hi,
    I will try to explain once more :)

    Let's assume that we have drop-down control with checkboxes and combobox.

    User opens drop-down and checks some options in it. Then changes selected item in combobox, which makes checked checkboxes in drop-down invalid.

    User can see red border around checkbox if he opens drop-down, but drop-down itself won't show that it has invalid content.
    One solution is to open drop-down to let user see invalid controls in drop-down content, other draw red border in around drop-down for same purpose.

    Thanks, Alexey
  5. Answer
    Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 01 Nov 2010 Link to this post

    Hi Alexey Oyun,

     I don't think this is possible, since the DropDownButton is not actually an Input control, so the validation for it is not working that way. You will need to implement such a validation logic for yourself, or change your Design so that the invalid items are always visible.
    If we can be of further help, please let us know. 

    Best wishes,
    Miro Miroslavov
    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
  6. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 01 Nov 2010 Link to this post

    Hi,

    Thanks for your time, maybe I will have to use validation summary or redesign UI.

    Thanks, once more Alexey.
Back to Top
DevCraft banner