Validation error tooltip

7 posts, 0 answers
  1. Uli
    Uli avatar
    33 posts
    Member since:
    Jul 2010

    Posted 24 Mar 2011 Link to this post

    Hi,

    is there a way to achieve that the validation error tooltip is not only shown if the mouse cursor is within the red triangle in the upper right corner of the cell but also when it is somewhere else in the area of the invalid cell? I need this behaviour especially in non-edit mode.

    Regards Uli
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 24 Mar 2011 Link to this post

    Hello Uli,

     
    You may achieve this result by predefing the template of the GridViewEditorPresenter in an appropriate manner as it is demonstrated at the attached example. Feel free to change it in the way you need.

    Regards,
    Vanya Pavlova
    the Telerik team
  3. UI for WPF is Visual Studio 2017 Ready
  4. Uli
    Uli avatar
    33 posts
    Member since:
    Jul 2010

    Posted 24 Mar 2011 Link to this post

    Hello Vanya,

    predefining the template of the GridViewEditorPresenter changes the behaviour in edit mode. But I need it for non-edit or view mode.

    Regards Uli
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 27 Mar 2011 Link to this post

    Hi Uli,

     
    You may achieve this result by predefining the template of GridViewCell, please refer to the attached example.

    Best wishes,
    Vanya Pavlova
    the Telerik team
  6. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 12 Sep 2014 in reply to Vanya Pavlova Link to this post

    Hello Uli,

    I have a MDI WPF application that has different custom themes depending on which window is open.  Each window has its own set of styles, controls and layouts.  In particular, a custom Validation.ErrorTemplate is defined for each and is set to all input control types; i.e. TextBoxes, RadDatePickers, ect. 

    This method you've posted will work on a one case scenario, but in my case, would require a duplication of effort where we would have to create a sister GridViewEditorPresenter style for each distinct window. 

    Q: is there any way to reuse the custom Validation.ErrorTemplate using your method?  Perhaps we can set it using a Bind? 

    Thanks in advance. 
  7. Rashad Rivera
    Rashad Rivera avatar
    63 posts
    Member since:
    Aug 2009

    Posted 12 Sep 2014 in reply to Rashad Rivera Link to this post

    Uli,

    I forgot to say that each window represents a sub application that uses Page navigation to present its content.  This MDI app is not like Excel in where each sub window has the same theme, but rather each window representing a sub application.  This is why they don't share the same styles, themes and layouts.  Thanks again
  8. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 17 Sep 2014 Link to this post

    Hi Rashad,


    Thank you for contacting us. 

    Following the platform rules, you have styles applied either to single instance or to all instances of an object. If you want to have specific styles they should be in the resource scope of each distinct window.

    This means that if you want to have specific validation tooltip style you should add it to the resource scope of the window. Yes, you should duplicate these styles and make them specific to those elements you need. 

    Hope this helps. 

    Regards,
    Vanya Pavlova
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready