When I insert or edit a row and tab to the end of the row, the row gets validated and e.olddata holds correctly the old data. But when I change the content of a cell and after that I click on another row, e.oldata holds the actual rowdata. This is not the behavior you would expect.
3 Answers, 1 is accepted
answered on 10 Sep 2009, 06:06 AM
It seems you've hit a bug in our control.
We intend to add new property to GridViewRowValidatingEventArgs. This new property will be named OldValues and its type will be Dictionary<string, object> where string will be column DataMemberBinding.Path and object will be actual data behind this column.
Do you think that this new property will be helpful, or you need something more?
P.S. I've added 1500 points to your Telerik account.
the Telerik team
What I look to do, is to check the uniqueness of the values in a column.
Something like this:
For each item in collection (collection is the itemssource of radgridview)
If e.newvalue = item and item<>e.oldvalue then isvalid=false
So I suppose, I would be able to do this with the new property.
Thanks for your always quick and useful responses and for the points of course.
With kind regards,
answered on 11 Sep 2009, 01:17 PM
Newly added property "OldValues" of the GridViewRowEditEndedEventArgs will be available in the latest internal build (this Friday). Let me know if this fixes your problem.