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

[Solved] Bind/Show Validation errors in individual controls in RadGridView

3 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nagaraju Kondepudi
Top achievements
Rank 1
Nagaraju Kondepudi asked on 22 Dec 2009, 05:23 AM
hi experts,

I am a newbie to RadControls.
I have RadGridView with few textboxes.
I need to bind validation errors and display error messages dynamically for a particular control in the cell.
Is there a way i can achieve this? Please share code if anyone has

thanks a lot for your time in advance

Regards,
Nagaraju K
---Microsoft-----

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 22 Dec 2009, 03:17 PM
Hi Nagaraju Kondepudi,

Please take a look at this blog post and let me know if it does not help.

Kind regards,
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
Nagaraju Kondepudi
Top achievements
Rank 1
answered on 23 Dec 2009, 04:14 AM

I tried this, but i am not getting e.ErrorMessage property in the event code.

Please let me know the version of the control that you provided demo.
when i checked version of Telerik.Windows.Controls.GridView, below is from properties.

Runtime version : v2.0.50727
version : 2009.2.925.1030

Below is from Metadata:

 

public

 

class GridViewCellValidatingEventArgs : CellRoutedEventArgs

 

 

 

 

 

{

 

public GridViewCellValidatingEventArgs(GridViewCell gridViewCell, GridViewRowItem rowItem, RoutedEvent routedEvent, object oldValue, object newValue);

 

 

public GridViewCell Cell { get; set; }

 

 

public object EditingElement { get; internal set; }

 

 

public bool IsValid { get; set; }

 

 

public GridViewRowItem Row { get; set; }

 

}

By the way, if we use new version control, i guess old properties are also supported and we do not need to change everywehre in the code.
Please advise ASAP.

0
Vlad
Telerik team
answered on 28 Dec 2009, 01:35 PM
Hi Nagaraju Kondepudi,

Actually 2009.2.925.1030 version is our Q3 beta - can you try our official Q3 version instead?

Greetings,
Vlad
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
Nagaraju Kondepudi
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Nagaraju Kondepudi
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or