Validation tooltip problem

6 posts, 0 answers
  1. Sodi We
    Sodi We avatar
    160 posts
    Member since:
    Apr 2010

    Posted 04 May 2012 Link to this post

    We have a problem with the validation tooltip in a radgridview. We have a required string column(width = auto) in this grid. If we leave it blank and go to the next column we get the validation error, this is correct. If we go back and start typing in this field there is no problem untill the text is so long that the column resizes. The problem here is that te error tooltip stays at its original position and we can't see what we are typing.

    I have added a screenshot with the problem.

    Sodiwe
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 07 May 2012 Link to this post

    Hi Sodiwe,

    You can easily avoid this behavior by editing ValidationTooltipTemplate of GridViewCell. For example, you can show the validation error to appear under validated cell. 

    Let us know if you need additional help about editing the template. 
     
    Kind regards,
    Yordanka
    the Telerik team

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

  3. DevCraft banner
  4. Sodi We
    Sodi We avatar
    160 posts
    Member since:
    Apr 2010

    Posted 21 Nov 2012 Link to this post

    Showing the validation under the cell isn't a option for me.
    Is there a way that to hide the tooltip on the moment we start typing or when the column resizes ?

    Sodiwe
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 22 Nov 2012 Link to this post

    Hi Sodi,

    With the current design of the ValidationTooltip there is no way to hide it when the mouse is over the cell. However, you may try changing the ValidationTooltip with something else that will meet your requirements. And you may control its appearance by modifying GridViewRow template. 
     
    Regards,
    Yordanka
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Darryl
    Darryl avatar
    4 posts
    Member since:
    Apr 2013

    Posted 19 May 2014 in reply to Yordanka Link to this post

    Hi Yordanka,

    I have been trying to edit the template for this, but in Blend I cannot find the appropriate section to set the ValidationToolTip Location.  Is there an example that you can direct me to?

    Regards,
    Darryl
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 22 May 2014 Link to this post

    Hello Sody,


    RadGridView supports different validation modes and the validation tool tip depends on different factors. Let's say that you perform validation in view mode, you will have to manipulate the appearance of a cell or row in this mode. In edit mode validation tool tip depends on the editor and GridViewEditorPresenter element. RadGridView's validation tool tip styles are located in Telerik.Windows.Controls.GridView.xaml, those related to editors in Telerik.Windows.Controls.xaml. If you manipulate the common one it will affect all kind of editors, the rest will affect only RadGridView

    May you please share with us what kind of validation you are currently using? 


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