This is a migrated thread and some comments may be shown as answers.

RadTextBox validation with javascript disabled

3 Answers 183 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ryan Bartsch
Top achievements
Rank 1
Ryan Bartsch asked on 03 Feb 2010, 11:19 PM
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.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 04 Feb 2010, 04:07 PM
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.
0
Ryan Bartsch
Top achievements
Rank 1
answered on 05 Feb 2010, 01:09 AM
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...
0
Dimo
Telerik team
answered on 05 Feb 2010, 07:25 AM
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.
Tags
Input
Asked by
Ryan Bartsch
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ryan Bartsch
Top achievements
Rank 1
Share this question
or