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

RadDatePicker Validation issue when javascript is diseble on user's machine

1 Answer 64 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
naimish
Top achievements
Rank 1
naimish asked on 04 Oct 2010, 06:26 AM
Hi,

In our project, we have start & End Dates (RadDatePickers), by selcting that dates Radgrid generates reports.

We are doing validation on server side.
1> The End date should be greater than start Date.
2> Date selection should be in the 6 months from current date.

Everything works well, but problem is that, if user diseble the javascript from their
machine, then  after that user is not able to select the dates or even type the date in text box of RadDatePicker.

Our need is that atleast user get a pop message  and could enter or select the date  if javascript is disebled.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Oct 2010, 11:48 AM
Hi Naimish,

When Javascript is disabled, you cannot pop anything to the user and the RadDatePicker will not work properly. However, you can add a message to the page in a <noscript> tag, so that the user enables Javascript.

http://www.w3schools.com/TAGS/tag_noscript.asp

If you need the support a scenario with disabled Javascript, you should use RadInputManager with a DateInputSetting. In this case manually entered values will be submitted to the server successfully.

http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/firstlook/defaultcs.aspx

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
naimish
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or