RadTextBox validation with javascript disabled

4 posts, 0 answers
  1. Ryan Bartsch
    Ryan Bartsch avatar
    11 posts
    Member since:
    Jun 2009

    Posted 03 Feb 2010 Link to this post

    Hello,

    I might be missing something obvious here, but server-side validation (i.e. Page.IsValid) fails for all my RadTextBox items when javascript is disabled.

     

    <asp:ValidationSummary id="valSummary" runat="server" DisplayMode="BulletList" ShowSummary="true" />

     


     

    <label for="txtStudentFirstName">First Name</label>

     

     

    <telerik:RadTextBox ID="txtStudentFirstName" runat="server" CssClass="RadTextBox" MaxLength="30" />

     

    <asp:RequiredFieldValidator id="rfvStudentFirstName" runat="server" ControlToValidate="txtStudentFirstName" ErrorMessage="First Name is required" Display="None" />

    It seems as though the input value is not getting passed through. Could someone please shed some light on this...

    Many thanks for any response.

    Ryan Bartsch.
  2. Dimo
    Admin
    Dimo avatar
    8482 posts

    Posted 04 Feb 2010 Link to this post

    Hi Ryan Bartsch,

    This is expected, because the "real" value of the RadTextBox (and all other RadInput textboxes) is not stored in the textbox that you are typing in.

    If you must support disabled Javascript, please use RadInputManager instead of RadTextBox.

    Kind regards,
    Dimo
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. Ryan Bartsch
    Ryan Bartsch avatar
    11 posts
    Member since:
    Jun 2009

    Posted 04 Feb 2010 Link to this post

    That is really really annoying.

    I'll have to use asp TextBox instead of RadTextBox, DateDatePicker, RadTimePicker etc. so that accessibility is maintained.

    why is there no AccessibilityMode attribute like the RadComboBox that renders a normal TextBox...
  4. Dimo
    Admin
    Dimo avatar
    8482 posts

    Posted 05 Feb 2010 Link to this post

    Hi Ryan,

    The AccessibilityMode property is not set automatically - you need to make some checks whether the client supports Javascript and set it manually. So similarly, after checking, you can create asp:TextBoxes instead of RadTextBoxes and RadDatePickers.

    There is no use in creating accessibility mode property for RadTextBox, as you can use RadInputManager unconditionally. We will consider adding it for pickers in the future.

    All the best,
    Dimo
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top