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

Fire ValidatesOnExceptions on SelectionChanged of GridView

2 Answers 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dhileep Kumar Sampath
Top achievements
Rank 1
Dhileep Kumar Sampath asked on 22 Apr 2010, 03:58 PM

Hi All,
           I am currently adding a telerik silverlight gridview to my screen and i have few validations (mandatory fields) to be done when user enters data in the grid. I have used
ValidatesOnExceptions=true and NotifyOnValidationError=true for doing the validation and throwing exceptions in the setter of the bound properties when the data entered is empty. This will show the tooltip for the controls which are failing the validation. All these are working fine while updating the existing records in the gridview.

But these validations are not happening when i am adding a new row, without entering any value in the mandatory fields and changing the selection to some other row. Do you have any suggestions for firing these validations when i am changing the selected row in the gridview?

Regards,
Dhileep

2 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 27 Apr 2010, 08:19 AM
Hello Dhileep Kumar Sampath,

My first guess is that you are using nested properties which are not created when you add new row, that's why code inside setters of these properties is never reached. If this is not your scenario, please elaborate a little bit.
I need some more information about definition of the column that causes the problem and also definition of your business object.

Greetings,
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
G.K. Raju
Top achievements
Rank 1
Iron
answered on 27 Apr 2010, 11:00 AM
Hi Nedyalko Nikolov,
     Thanks for looking into this issue. I have raised a support ticket for this and attached the sample application. Please refer ticket Id 304318 for the same.




Tags
GridView
Asked by
Dhileep Kumar Sampath
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
G.K. Raju
Top achievements
Rank 1
Iron
Share this question
or