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

bug ... validation summary not receiving validation errors

22 Answers 200 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
David Ocasio asked on 05 Jan 2012, 02:15 PM
the latest released version of silverlight 4 controls are suppressing validation errors when a cell is edited.

that is the error does not bubble up to the validation summary.

Example if i enter alpha chars in a integer column the summary does not show "bad input format" the cell does highlight the error.
It worked the last version you had.

See enclosed snapshots.

22 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 09 Jan 2012, 11:08 AM
Hi David,

I've managed to simulate the reported issue. The problem will be fixed with the internal build (Monday 9 Jan later today).
Sorry for the inconvenience caused.

Greetings,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 10 Jan 2012, 02:52 PM
very good

so do i get some points for reporting the bug
or was i like the 100th person to mention it
lol

sure wish i could get a T-shirt for points though
instead i use it for the yearly subscription
that just helps my employers
id rather have a T-shirt
lol
0
Hristo
Telerik team
answered on 11 Jan 2012, 10:24 AM
Hi David,

Thank you for your cooperation. I have updated your Telerik points.

All the best,
Hristo
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Nick Wood
Top achievements
Rank 1
answered on 18 Jan 2012, 03:21 AM
I have just tested the latest build and the problem still persists for me.

Please confirm that the fix is working?

Nick
0
Nedyalko Nikolov
Telerik team
answered on 18 Jan 2012, 08:51 AM
Hello,

We fixed this issue with internal build 2011.3.1309 (uploaded on Monday 9 Jan). Could you confirm that you are using this particular release and if it is true send me a sample project which I can debug on my side in order to see what is going on?

Kind regards,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 19 Jan 2012, 05:09 PM
Nick,

As Nedyalko Nikolov  has indicated,

The problem is fixed with there latest internal build.
The validation error bubbles correctly to the valdation summary.

The only issue i still have is with a textbox that is open in a cell-template
not the edit-template. Validations errors in that case are not being exposed.

i fixed that by handling the validation summary directly.

thanks
dco
0
Nick Wood
Top achievements
Rank 1
answered on 19 Jan 2012, 11:06 PM
Hi David.

I do use text boxes in a cell template, as well as numericupdown and others, all of which dont bubble up as you say:"The only issue i still have is with a textbox that is open in a cell-template".

Can you please explain what you mean by this: "i fixed that by handling the validation summary directly."

Nick
0
Nick Wood
Top achievements
Rank 1
answered on 01 Feb 2012, 02:00 AM
Does anyone have a response for this?

History, we have not changed the xaml of this RadGridView and the validtion summary was showing in the Q2 2011 build. When we upgraded to Q3, the problems started then.

It has been established that if you are using a column DataTemplate then the validations are not bubbling up.
"The only issue i still have is with a textbox that is open in a cell-template
not the edit-template. Validations errors in that case are not being exposed."

We really need a solution for this issue!

Nick
0
Nick Wood
Top achievements
Rank 1
answered on 01 Feb 2012, 03:08 AM
Further to this, for information, I am using the RadDataPager if this is also a part of the problem
0
Salie
Top achievements
Rank 1
answered on 06 Mar 2012, 11:18 AM
Hi

Did this get fixed in the Q1 2012 SL4 demo release? We are seeing the same behavior using this version. Is it fixed in the latest nightly build perhaps?

Thanks
0
Nedyalko Nikolov
Telerik team
answered on 06 Mar 2012, 04:09 PM
Hi,

Nick could you confirm that you have issues related to validation with the latest internal build (2012.2.306)?
If the problem persists could you please send me a sample project which I can debug on my side?
Thank you in advance.

Salie same applies to you too.

Regards,
Nedyalko Nikolov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Nick Wood
Top achievements
Rank 1
answered on 06 Mar 2012, 10:45 PM
Hi Nedyalko

I am currently running build: 2012.1.215.1050 and I am not updating again as I have done this about 4 times trying to fix the issue.

I cannot give you our full project or have time to build a small proof project. The issue is simple however, when ever you use a cell template and put a control within the column and data validation exceptions do not bubble up, for example:
<telerik:GridViewColumn Header="Min">                         
    <telerik:GridViewColumn.CellTemplate>                             
        <DataTemplate>                                 
            <
StackPanel Orientation="Horizontal">                                     
                <telerik:RadNumericUpDown Value="{Binding AttendanceMin, Mode=TwoWay, ValidatesOnNotifyDataErrors=True, ValidatesOnExceptions=true, NotifyOnValidationError=True}" NumberDecimalDigits="0" Minimum="0" SmallChange="1" LargeChange="10" />                                 
            </StackPanel>                             
        </DataTemplate>                         
    </
telerik:GridViewColumn.CellTemplate>                     
</
telerik:GridViewColumn>

I am going to raise a ticket for this becuase it has been going on for months, since Q3 2011 on SL4 and it is impacting production projects.

Nick

0
Salie
Top achievements
Rank 1
answered on 07 Mar 2012, 01:23 PM
How do I send you a sample project? Tried creating a support ticket, but I have no licensed products assoc to my user (although my company does)
0
Nedyalko Nikolov
Telerik team
answered on 07 Mar 2012, 02:23 PM
Hi,

In order to get validation notifications there are different approaches depending on how do you validate your business object.

1. If you are using IDataErrorInfo or INotifyDataErrorInfo - all you have to do is to set "ValidatesOnDataErrors=True" to your binding.

2. If you are using DataAnnotation attributes the story is a little bit different. In general when CellTemplate is used you are by-passing RadGridView's validation logic and in this case nested control (in your case RadNumericUpDown should take care about the validation). I've checked with an ordinary TextBox and there is no validation notifications too (so I believe that there is no problem with RadNumericUpDown control). It is not so easy to achieve validation with nested controls, so my suggestion is to use RadGridView's validation mechanism. RadGridView performs DataAnnotation validation only when editing of the entire row is finished. We will consider adding "in view mode" validation with DataAnnotation attributes, but I cannot commit with any specific date or release.

I've just checked everything with latest internal build (2012.1.306) and everything works as expected.
Let me know if there is something unclear.

All the best,
Nedyalko Nikolov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Salie
Top achievements
Rank 1
answered on 07 Mar 2012, 02:33 PM
Hi

I submitted a general support ticket. It includes the project showing the issue.

I am using INotifyDataErrorInfo and have included ValidatesOnNotifyDataErrors=True.

Please just confirm that the dlls I am using (2012.1.215.1040) is showing the error?

(I can then proceed to update to the latest build (2012.1.306.1040))

Thanks
Salie
0
Nick Wood
Top achievements
Rank 1
answered on 08 Mar 2012, 12:07 AM
Hi Nedyalko

I am using DataAnnotations, but I am not gleaning an actual solution from your post? Can you please give me a clear indication of what will work when using a control within a cell template in the GridView.

Bear in mind that this actually used to work in pre Q3 2011 versions as we had this feature in a release version with a client and after we updated to the latest binaries, it stopped working.

Nick
0
Nedyalko Nikolov
Telerik team
answered on 08 Mar 2012, 10:52 AM
Hi,

Hi Nick,

Could we continue our discussion within our support system? Please open a separate support ticket with more info about your problem (since this forum thread discuss more problems and everything became unclear). It will be very helpful if you can send me a sample project (which works with 2011.Q3 version and does not work with 2012.Q1).
Thank you in advance.

Hi Salie,

I've just checked your sample project with 2012.1.0306 binaries and everything works as expected.

Greetings,
Nedyalko Nikolov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Salie
Top achievements
Rank 1
answered on 09 Mar 2012, 08:09 AM
Excellent thanks. Will upgrade asap.
0
Salie
Top achievements
Rank 1
answered on 30 Mar 2012, 09:56 AM
I just updated to 2012.1.326.1040 (SL4) and it still does the same thing. Sad sad panda!! :(

Those are the licensed dlls. Sent through a support request.

Please upload the 2012.1.306 sample. Was that sample showing it working; a SL5 or SL4 project? I don't intend to upgrade to SL5 for another few months. This issue will hit our critical path in the next 2 weeks, we need to go into production but this is def a blocker.
0
Vlad
Telerik team
answered on 02 Apr 2012, 07:02 AM
Hi,

 I don't any support tickets from you. Can you post where you received our latest binaries? According to our system you do not have any purchases nor downloads. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Salie
Top achievements
Rank 1
answered on 02 Apr 2012, 08:33 AM
Hi Vlad,, See accounts@jamwarehouse.com.

Can you address the problem at hand first please :(

Thanks
Salie
0
Hristo
Telerik team
answered on 02 Apr 2012, 11:50 AM
Hi Salie,

We are not able to identify any issue here. Please open a separate ticket with detailed explanation of what you are trying to achieve and a sample project which illustrates the problem.

All the best,
Hristo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Nedyalko Nikolov
Telerik team
David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
Hristo
Telerik team
Nick Wood
Top achievements
Rank 1
Salie
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or