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

Roadmap on Validation for GridView

7 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 26 Apr 2010, 04:42 PM
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.

7 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 29 Apr 2010, 12:09 PM
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.
0
David
Top achievements
Rank 1
answered on 29 Apr 2010, 05:14 PM
I don't see the CellTemplateSelector as available.  When will the service pack including this be available?
0
David
Top achievements
Rank 1
answered on 29 Apr 2010, 06:41 PM
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.
0
Vlad
Telerik team
answered on 30 Apr 2010, 06:59 AM
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.
0
David
Top achievements
Rank 1
answered on 30 Apr 2010, 04:31 PM
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.
0
David Brenchley
Top achievements
Rank 1
answered on 16 Dec 2010, 09:48 PM
Bump
0
Nedyalko Nikolov
Telerik team
answered on 20 Dec 2010, 09:55 AM
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
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
David
Top achievements
Rank 1
Vlad
Telerik team
David Brenchley
Top achievements
Rank 1
Share this question
or