Roadmap on Validation for GridView

8 posts, 0 answers
  1. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 26 Apr 2010 Link to this post

    What are the future plans for validation with GridView?  Do you plan to support multiple levels of validation, such as errors/warnings/information?  I have a situation where my customers want to be warned of a value differential, but still want to be able to save their data.
  2. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 29 Apr 2010 Link to this post

    Hello David,

    We don't have such plans. However you can use Row/CellTemplateSelector and Row/CellStyleSelector properties to achieve this via a proper view model. For more information about selector properties you can take a look at this blog post.

    All the best,
    Nedyalko Nikolov
    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. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 29 Apr 2010 Link to this post

    I don't see the CellTemplateSelector as available.  When will the service pack including this be available?
  5. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 29 Apr 2010 Link to this post

    Ok, I've got a copy that has CellSytleSelector.  How do I get the object that is bound to DataMemberBinding?  The item that is passed to the style selector is the item bound to the row, not the cell.  I need the object bound to the cell.
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Apr 2010 Link to this post

    Hello,

    The second argument is the cell itself.

    Regards,
    Vlad
    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.
  7. David
    David avatar
    17 posts
    Member since:
    Apr 2009

    Posted 30 Apr 2010 Link to this post

    Unfortunately using a selector seems to be insufficient.  It only fires when a cell comes into view.  I would need it to fire anytime the cell had been edited or anytime a notifyonvalidation occured.
  8. David Brenchley
    David  Brenchley avatar
    67 posts
    Member since:
    Jun 2010

    Posted 16 Dec 2010 Link to this post

    Bump
  9. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 20 Dec 2010 Link to this post

    Hi David Brenchley,

    Indeed validation notifications provided by INotifyDataErrorInfo and (IDataErrorInfo + INotifyPropertyChanged) interfaces affects only visible items, because visual objects for items and cells are created only for visible ones.
    You could use RowTemplate/StyleSelector which could be bound to a property which indicates that there is an error for this item, but again this will work only for visible items. You could by-pass this behavior if you turn off row and column virtualization. This is not recommended (but it is an option if you don't have large data with too much columns).

    Regards,
    Nedyalko Nikolov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
Back to Top
UI for WPF is Visual Studio 2017 Ready