bug ... validation summary not receiving validation errors

23 posts, 1 answers
  1. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 05 Jan 2012 Link to this post

    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.
  2. Answer
    Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 09 Jan 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 10 Jan 2012 Link to this post

    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
  5. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 11 Jan 2012 Link to this post

    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 >>

  6. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 17 Jan 2012 Link to this post

    I have just tested the latest build and the problem still persists for me.

    Please confirm that the fix is working?

    Nick
  7. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 18 Jan 2012 Link to this post

    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 >>

  8. David Ocasio
    David Ocasio avatar
    147 posts
    Member since:
    Nov 2009

    Posted 19 Jan 2012 Link to this post

    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
  9. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 19 Jan 2012 Link to this post

    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
  10. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 31 Jan 2012 Link to this post

    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
  11. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 31 Jan 2012 Link to this post

    Further to this, for information, I am using the RadDataPager if this is also a part of the problem
  12. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 06 Mar 2012 Link to this post

    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
  13. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 06 Mar 2012 Link to this post

    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 >>
  14. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 06 Mar 2012 Link to this post

    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

  15. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 07 Mar 2012 Link to this post

    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)
  16. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 07 Mar 2012 Link to this post

    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 >>
  17. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 07 Mar 2012 Link to this post

    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
  18. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 07 Mar 2012 Link to this post

    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
  19. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 08 Mar 2012 Link to this post

    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 >>
  20. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 09 Mar 2012 Link to this post

    Excellent thanks. Will upgrade asap.
  21. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 30 Mar 2012 Link to this post

    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.
  22. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 02 Apr 2012 Link to this post

    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 >>
  23. Salie
    Salie avatar
    6 posts
    Member since:
    Nov 2007

    Posted 02 Apr 2012 Link to this post

    Hi Vlad,, See accounts@jamwarehouse.com.

    Can you address the problem at hand first please :(

    Thanks
    Salie
  24. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 02 Apr 2012 Link to this post

    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 >>
Back to Top
DevCraft banner