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

[Solved] validation happen only at server side after upgrading to Ajax

3 Answers 106 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
PureRamu
Top achievements
Rank 1
PureRamu asked on 03 Apr 2009, 11:39 AM

 

I was using a trial version of ‘RadControls for ASPNET’.

 

Now I have updated to  purchased  version  of ‘RadControls for ASPNET AJAX 2009’.

 

All controls have upgraded to this version

 

But now all validation happens only at server side.

(I have used asp required field validator  to validate telerik date picker).

 

But validation happen only at server side when I call page.validate()

it  was  happening in client side itself before.

what to do now?


 

 

 

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 06 Apr 2009, 03:37 PM
Hi PureRamu,

The trial and dev versions of our controls do not have different behavior related to page validation - the only difference is the intermittent copywrite message you get when using the trial version of the controls.

Therefore, the same validation rules should be applicable in both cases. I suggest you examine the following resources dedicated on date picker validation:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/validation/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/calendar_webpagesvalidation.html

and configure your validation logic based on them.

Best,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Steve
Top achievements
Rank 2
answered on 24 Apr 2009, 07:35 PM
Hi, I'm using the following version of Telerik controls: 2008.03.1314.35.

I'm having a problem where i set the value of a RadDatePicker server-side when a page loads: RadDatePicker1.SelectedDate = someDate;

I'm using a RequiredFieldValidator with the date picker.  The value I set displays in the control.  If I do nothing other than hit my 'Save' button, which causes validation, client-side validation with the validator control passes, but when my code checks for Page.IsValid, this RequiredFieldValidator fails.  The "SelectedDate" property of the control is showing null, even though RadDatePicker1.DateInput.Text has the value I originally set for "SelectedDate".  This has not always been a problem with this control.  A snippet of the code is below.

 

// Server side code to set field value on page load.
this
.raddpEstimatedReceiptDate.SelectedDate = this.DataObject.EstimatedReceiptDate;

 


<!-- HTML -->

 

<telerik:RadDatePicker ID="raddpEstimatedReceiptDate" runat="server" Width="90px" ToolTip="Enter the date you anticipate the shipment will arrive" />

 

<

asp:RequiredFieldValidator ID="rfvReceiptDate" runat="server" ControlToValidate="raddpEstimatedReceiptDate" Display="None" ErrorMessage="Estimated Receipt Date required" ValidationGroup="SalesOrderShipping" />

 

<

asp:ValidationSummary ID="vsValidation" runat="server"

 

 

 

 

DisplayMode="BulletList" HeaderText="The following error(s) occurred:

 

"

ShowMessageBox="true" ShowSummary="false" ValidationGroup="SalesOrderShipping" />

 

0
Sebastian
Telerik team
answered on 27 Apr 2009, 04:08 PM
Hello Steve,

I tried to replicate the issue using the latest version 2009.1.402 of RadControls for ASP.NET AJAX but unfortunately to no avail.

To progress in our investigation, I suggest you prepare a stripped working version of your project, illustrating the issue, and send it enclosed to a regular support ticket. I will test/debug it locally and will get around to you with my findings.

Regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
PureRamu
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Steve
Top achievements
Rank 2
Share this question
or