Home Search Member List Faq Register Login  
UltimateEditor
Ultimate Editor Validation

Thread Starter: zenuke   Started: 04-13-2007 10:53 AM   Replies: 8
 Karamasoft Support Forums » General Discussions » UltimateEditor » Ultimate Editor Validation
 Printable Version    « Previous Thread   Next Thread »
  13 Apr 2007, 10:53 AM
zenuke is not online. Last active: 12/28/2009 10:34:09 AM zenuke

Top 10 Posts
Joined on 01-04-2007
Posts 27
Ultimate Editor Validation
Is it possible to use the built in ASP require field validation controls on Ultimate Editors? (or any Ultimate control for that matter)
  
  13 Apr 2007, 11:02 AM
zenuke is not online. Last active: 12/28/2009 10:34:09 AM zenuke

Top 10 Posts
Joined on 01-04-2007
Posts 27
Re: Ultimate Editor Validation
Sorry, I mean the Ultimate Calendar. HOw can I make sure someone has selected a date using the calendar and datepicker.
  
  13 Apr 2007, 11:33 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Ultimate Editor Validation
Both UltimateEditor and UltimateDatePicker support the CausesValidation property. If you set the ControlToValidate property of the RequiredFieldValidator to the ID of UltimateEditor or UltimateDatePicker's TextBox control, it should work fine.
  
  13 Apr 2007, 1:38 PM
zenuke is not online. Last active: 12/28/2009 10:34:09 AM zenuke

Top 10 Posts
Joined on 01-04-2007
Posts 27
Re: Ultimate Editor Validation
I get the error

Control 'UltimateDatePicker1_new' referenced by the ControlToValidate property of 'rfvDate' cannot be validated.


  
  13 Apr 2007, 1:49 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Ultimate Editor Validation
Have you tried setting the COntrolToValidate property of rfvDate to UltimateDatePicker1_txt? Please copy/paste your page here so that we can see your settings.
  
  13 Apr 2007, 1:55 PM
zenuke is not online. Last active: 12/28/2009 10:34:09 AM zenuke

Top 10 Posts
Joined on 01-04-2007
Posts 27
Re: Ultimate Editor Validation
that works, no error, but the validation for it is not firing.
  
  13 Apr 2007, 2:28 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Ultimate Editor Validation
Again, you need to put your aspx and code behind pages so that we can try to reproduce the problem. You may also send us your app in zipped form.
  
  13 Apr 2007, 2:52 PM
zenuke is not online. Last active: 12/28/2009 10:34:09 AM zenuke

Top 10 Posts
Joined on 01-04-2007
Posts 27
Re: Ultimate Editor Validation
its this simple.

DeadLine Date:<cc2:UltimateCalendar ID="UltimateCalendar1_new" InitiallyHidden="true" runat="server">

</cc2:UltimateCalendar>

<cc2:UltimateDatePicker ID="UltimateDatePicker1_new" runat="server" UltimateCalendarID="UltimateCalendar1_new">

</cc2:UltimateDatePicker>

<asp:RequiredFieldValidator ID="rfvDate" runat="server" ControlToValidate="UltimateDatePicker1_new_txt" ErrorMessage="Deadline Date REquired"></asp:RequiredFieldValidator>


All other controls (including UEs) validate on the button click, the datepicker does not. The box is empty and I neved click calendar control.


  
  13 Apr 2007, 4:07 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Ultimate Editor Validation

We tested with your own code, and it worked just fine. Please find below the whole aspx page we created with your code snippet inside. We added a button in order to submit the page, which triggers your required field validator control. If you leave the date picker textbox empty, it gives the error "Dateline Date REquired" as you specified. If you pick a date from calendar, or type yourself it submits the page properly. If you don't have the latest version of UltimateCalendar please download it and test with it. If you can't make it work we can send you a full working sample application as well.

<%@ Register Assembly="UltimateCalendar" Namespace="Karamasoft.WebControls.UltimateCalendar" TagPrefix="cc2" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CalValidate.aspx.cs" Inherits="CalValidate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    DeadLine Date:<cc2:UltimateCalendar ID="UltimateCalendar1_new" InitiallyHidden="true" runat="server">

</cc2:UltimateCalendar>

<cc2:UltimateDatePicker ID="UltimateDatePicker1_new" runat="server" UltimateCalendarID="UltimateCalendar1_new">

</cc2:UltimateDatePicker>

<asp:RequiredFieldValidator ID="rfvDate" runat="server" ControlToValidate="UltimateDatePicker1_new_txt" ErrorMessage="Deadline Date REquired"></asp:RequiredFieldValidator>
        <asp:Button ID="Button1" runat="server" Text="Button" /></div>
    </form>
</body>
</html>


  
 Page 1 of 1 (9 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Ultimate Editor Validation

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2021 Karamasoft LLC. All rights reserved.