Validation on TextBlock

3 posts, 0 answers
  1. Shweta
    Shweta avatar
    11 posts
    Member since:
    Oct 2011

    Posted 24 Oct 2011 Link to this post

    Hi Team,
    I added validation on TextBlock. But is showing error message in collapsed form with small red triangle on top-right corner of textblock  with red color border around textbox.
    My requirement is to, make error message always visible. Means, message should be displayed near textblock whenever red border comes around textblock.

    How can I achieve this?


    Regards,
    Shweta
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 24 Oct 2011 Link to this post

    Hello Shweta,

     


    Generally in such cases you have to predefine the template of the corresponding control.
    For example, the default template for a Textbox control has a "ValidationErrorElement" defined as a ToolTip that is only visible if the control has a validation error. 
    Can you verify how is this related to RadControls/Silverlight? 



     

    Greetings,
    Vanya Pavlova
    the Telerik team

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

  3. Shweta
    Shweta avatar
    11 posts
    Member since:
    Oct 2011

    Posted 24 Oct 2011 Link to this post

    Hi Team,

    <

     

     

    telerik:RadBusyIndicator>
        <Grid ...>
            <StackPanel>
                 <TextBLock .... />
            </StackPanel>
        </Grid>

     

    </

     

     

    telerik:RadBusyIndicator>

     

Back to Top