Page_ClientValidate();
if (Page_IsValid) {
//do stuff
}
the Page_IsValid evaluates to true.
I see no examples in the documentation on RadDateTimePicker and how it works with the ASP .NET validators.
This is how I define my RadDateTimePicker:
<telerik:RadDateTimePicker ID="StartDateTextBox" runat="server" Skin="WebBlue" MaxDate=""
Culture="English (United States)" FocusedDate="">
<TimePopupButton CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton>
<TimeView Skin="WebBlue" Interval="00:30:00">
</TimeView>
<DateInput InvalidStyleDuration="100" runat="server" LabelCssClass="radLabelCss_WebBlue"
Skin="WebBlue" >
</DateInput>
<Calendar Skin="WebBlue" ShowRowHeaders="False">
</Calendar>
<DatePopupButton CssClass="" ImageUrl="" HoverImageUrl="" />
<ClientEvents OnDateSelected="dateChanged" />
</telerik:RadDateTimePicker>
8 Answers, 1 is accepted
Please review the following online example which elaborates on this matter.
I hope it helps.
Regards,
Maria Ilieva
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.
Creating Custom Validator in the described way is the best approach for your scenario. Try to implement this approach and let us know if further questions arise.
Regards,
Maria Ilieva
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.
<EditFormSettings EditFormType="Template">
The update continues after the client message for custom validator is displayed. How can I cancel the update from the client side possibly inside the validate() function. Thanks.
Pierre
As the provided information is not enough to correctly understand the issue you are facing and provide proper solution, could you please open a regular support ticket and send us fully runnable sample with exact steps for replicating the problem, Thus we will be able to test it locally and advise you further.
All the best,
Maria Ilieva
the Telerik team
Thanks!
-Mark
Did you review the following online example which elaborates on RadDatePicker validation and shows and option with custom validator.
If this is not what you need, please elaborate a bit more on your requirements so we could suggest proper approach for your case.
All the best,
the Telerik team
Thanks!
-Mark