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

Problem with row validation

3 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 05 Sep 2009, 09:11 AM
Hi,

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.

Thomas

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 10 Sep 2009, 06:06 AM
Hi Thomas,

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.

Sincerely yours,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Thomas
Top achievements
Rank 1
answered on 11 Sep 2009, 08:42 AM
Hello,

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,
Thomas.



 




0
Nedyalko Nikolov
Telerik team
answered on 11 Sep 2009, 01:17 PM
Hi Thomas,

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.

Sorry for the inconvenience caused.

Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or