RadInputManager - Validation Summary

6 posts, 1 answers
  1. Dick
    Dick avatar
    36 posts
    Member since:
    Sep 2007

    Posted 30 Jun 2011 Link to this post

    I like to use a validation summary alert with the RadInputManager. Can anyone provide me with an example?

    Kind regards,
    Dick van Straaten
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Jun 2011 Link to this post

    Hello Dick,

    Try setting ShowMessageBox property to true. Here is a sample code.
    aspx:
    <telerik:RadInputManager runat="server" ID="RadInputManager1">
         <telerik:TextBoxSetting>
          <Validation IsRequired="true" />
               <TargetControls>
                <telerik:TargetInput ControlID="TXT" />
               </TargetControls>
         </telerik:TextBoxSetting>
    </telerik:RadInputManager>
    <asp:TextBox runat="server" ID="TXT" />
    <asp:Button Text="Submit" runat="server" />
    <asp:ValidationSummary runat="server" ShowMessageBox="true" ToolTip="Must type in textbox!"
     HeaderText="Header" />

    Thanks,
    Shinu.
  3. Dick
    Dick avatar
    36 posts
    Member since:
    Sep 2007

    Posted 30 Jun 2011 Link to this post

    Hi Shinu,

    Okay, the ValidationSummary works, but the RadInputManager still shows the error-message in the TextBox.

    Do you know how to disable the error-message in the TextBox?

    Regards,
    Dick
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Jul 2011 Link to this post

    Hello Dick,

    Try setting ShowSummary property as "false".

    aspx:
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
    ToolTip="Must type in textbox!" HeaderText="Header" ShowSummary="false" />

    Thanks,
    Shinu.
  5. Dick
    Dick avatar
    36 posts
    Member since:
    Sep 2007

    Posted 01 Jul 2011 Link to this post

    Sorry, but don't mean the Validation Summary text, but the errormessage in the textbox which is validated.
  6. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 06 Jul 2011 Link to this post

    Hello Dick,

    In order to implement the desired functionality, I suggest that you set the ErrorMessage property of the corresponding TextBoxSetting.

    I hope this helps.

    Kind regards,
    Mira
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top