This question is locked. New answers and comments are not allowed.
Hi,
I'm using the rad controls Q1 2010 (the lasted version) for Silverlight 3.
I have a GridView1 and I have a row validation for this gridview in code-behind
When user adds a new row into GridView1, once the row loses focus the validation is executed and the message is appeared. But this message is displayed two times if user clicks on a different row in this gridview instead of clicking anywhere else (to lose focus) then clicks on OK in the displayed message. It means that the validation is executed two times.
I don't have that problem when using Telerik Q3 2009.
Do you have any idea?
Minh.
I'm using the rad controls Q1 2010 (the lasted version) for Silverlight 3.
I have a GridView1 and I have a row validation for this gridview in code-behind
| void GridView1_RowValidating(object sender, GridViewRowValidatingEventArgs e) |
| { |
| foreach (GridViewCell g in e.NewValues) |
| { |
| if (string.IsNullOrEmpty(g.Value.ToString())) |
| { |
| if (MessageBox.Show("Do you want to continue?", "", MessageBoxButton.OKCancel) == MessageBoxResult.OK) |
| { |
| e.IsValid = false; |
| } |
| else |
| { |
| e.IsValid = true; |
| } |
| break; |
| } |
| } |
| } |
When user adds a new row into GridView1, once the row loses focus the validation is executed and the message is appeared. But this message is displayed two times if user clicks on a different row in this gridview instead of clicking anywhere else (to lose focus) then clicks on OK in the displayed message. It means that the validation is executed two times.
I don't have that problem when using Telerik Q3 2009.
Do you have any idea?
Minh.