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

Unknown server tag 'scheduler.AdvancedForm'

3 Answers 83 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 16 Aug 2012, 06:23 PM
Every time I changed the Radscheduler, I reveive error on the aspx page "Unknown server tag 'scheduler.AdvancedForm'".
Is there someting to do with the AdvancedEditTemplate?  Please refer to the screen print.
Here is my ASPX:

 

<%@ Page Title="My Availability" Language="vb" AutoEventWireup="false" MasterPageFile="~/AvailabilityLinksSubMaster.master" CodeBehind="MyAvailability.aspx.vb" Inherits="MSP.MyAvailability" %>
<%@ MasterType virtualpath="~/AvailabilityLinksSubMaster.master" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="AdvancedFormVB.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        div.RadScheduler .rcOtherMonth
        {
           
           
        }
        div.RadScheduler .rsAllDayHeader,
        div.RadScheduler .rsVerticalHeaderTable div
        {
        font-weight: bold;
        text-align: right;
        }
 
        .rsApt
        {
        width: 45%!important;
       
        }
        .rsAllDayRow .rsWrap
        {
         display:none !important;
        }
        div.RadToolTip table.rtWrapper td.rtWrapperContent
        {
            background-color:none !important;
            background-image: url("../Images/Menu_Bkgrd_Normal2.png") !important;
        }

        .ScreenOnly {display : none;}
        .style1
        {
            width: 388px;
        }
        .style2
        {
            width: 216px;
        }
        .style3
        {
            width: 197px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabContent" runat="server">
<!-- My Messages -->
    <asp:UpdatePanel ID="upMyMessages" runat="server" UpdateMode="Always" >
        <ContentTemplate>
          <asp:Panel ID="pnlMyMsgs" runat="server" CssClass="mymsgs" ScrollBars="Auto">
                <asp:Label ID="lblMessage" runat="server" Text="MESSAGES: " Font-Bold="true"></asp:Label>
                <asp:Table ID="tblMyMsgs" runat="server" Width="98%" Font-Size="Small" CellPadding="0" CellSpacing="0">
                </asp:Table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  <script type="text/javascript">
            function TimeRangeOnclick() {
          
     var scheduler = $find('<%=RadScheduler1.ClientID %>');
   
   
    var appointment = scheduler.get_appointments().findByID(59);
    scheduler.editAppointmentWithConfirmation(appointment);
};
      function hideActiveToolTip()
            {
          var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
          if (tooltip)
                {
              tooltip.hide();
          }
      }

      Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
      function beginRequestHandler(sender, args)
            {
          var prm = Sys.WebForms.PageRequestManager.getInstance();
          if (args.get_postBackElement().id.indexOf('RadScheduler1') != -1)
                {
              hideActiveToolTip();
          }
      }

      function OnClientRequestStart(sender, args)
            {
          args.set_cancel(true);
          var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
          if (tooltip)
                {
              var element = tooltip.get_targetControl();
              var apt = $find("<%=RadScheduler1.ClientID %>").getAppointmentFromDomElement(element);
                    <%--
              $get("startTime").innerHTML = apt.get_start().format("MM/dd/yyyy HH:mm");
              $get("endTime").innerHTML = apt.get_end().format("MM/dd/yyyy HH:mm");
                    --%>
              $get("descriptionDiv").innerHTML = "double click to edit your preference";
              tooltip.set_text($get("contentContainer").innerHTML);
          }
      }

            function RadAlertCallBackFunction(){
                //this function handles the event when user clicks on the alert OK button
                //presently nothing is implemented
            }

  </script>
 </telerik:RadCodeBlock>                       
 
       
    <!-- Start Header -->
<!-- End Header -->
   
                    <table cellpadding="0" cellspacing="0" class="style5" cols="1" width="100%">
                        <tr>
                            <td valign="top">
  <!-- Top Menu -->
  
  <!-- End Top Menu -->
  <!-- Start Workspace --> 
                          <div id="Workspace" align="left" class="style6">
                                    <div id="PrintViewHeader" style="display: none;">
                                        <table border="0" cellpadding="1" cellspacing="1" cols="2" width="98%">
                                            <tbody class="SiteTextSmall">
                                                <tr>
                                                    <td align="center" class="PageHeading">
                                                        Availability</td>
                                                </tr>
                                                <tr class="ScreenOnly">
                                                    <td align="left">
                                                        <span class="SiteTextboldRed">For best results, change your printer setting to
                                                        landscape. </span>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
   
   

    <!-- Schedule option -->
                        <table border="0" cellpadding="1" cellspacing="1" cols="1" width="98%">
                                        <tbody class="SiteTextSmall">
                                            <tr>
                                          
                                                <td colspan="1" rowspan="1">
                                                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">
                                                        <table id="tblAdvancedSearch">
                                                            <tr>
                                                                <td class="style2">
                                                                    <p align="center" dir="rtl" style="font-weight: bold">Schedule Option<br />
                                                                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
                                                                            Font-Bold="True" Font-Size="Smaller" Enabled="False">
                                                                            <asp:ListItem>Part-Time 12 to 20 Assigned Hours</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </p>

                                                                    <p align="center">  Select a Schedule Option for assigned hours<br />(balance of
                                                                        weekly hours self selected):</p>
                                                                    <br /><br />
                                                                </td>

                                                                <td class="style1">
                                                                   
                                                                   
                                                                   
                                                            <span style="font-size: x-small; font-weight: bold;">Your availability selections will need to conform to the following work rules:</span>
                                                            <br />
                                                            <telerik:RadTextBox ID="RadTextBoxScheduleOptionsDescription" runat="server"
                                                                        ReadOnly="True" Rows="5" TextMode="MultiLine" Width="500px" Wrap="False"
                                                                        DisabledStyle-BorderStyle="None" EnabledStyle-BorderStyle="Solid"
                                                                        Font-Size="X-Small" DisabledStyle-HorizontalAlign="NotSet"
                                                                        EnabledStyle-HorizontalAlign="Left" Columns="35" BorderStyle="None">
                                                                        <DisabledStyle BorderStyle="None" />
                                                                        <EnabledStyle HorizontalAlign="Left" />
                                                                    </telerik:RadTextBox>
                                                           
                                                                   
                                                                   
                                                                </td>
                                                                <td class="style3">
                                                                    <asp:Button ID="ButtonSaveTop" runat="server" Text="Submit" ForeColor="White" BackColor="#CC0000" BorderStyle="Outset" Font-Bold="True" />&nbsp;&nbsp
                                                                    <asp:Button ID="ButtonCancelTop" runat="server" Text="Reset" />
                                                                </td>
                                                                <td class="style3">
                                                                    <span>Links to documents:</span>
                                                            <ul>
                                                            <li>
                                                                <asp:LinkButton ID="LinkButton1" runat="server">Link  To  Document  1</asp:LinkButton>
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LinkButton2" runat="server">Link  To  Document  2</asp:LinkButton>
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LinkButton3" runat="server">Link  To  Document  3</asp:LinkButton>
                                                            </li>
                                                            </ul>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                   
                                                    <span style="font-weight: bold; font-size: medium; color: #666666; background-color: #FFFFFF;">&nbsp;&nbsp;&nbsp;Avaialbility and Preferences</span>
                                                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(To Edit, double click on an Avaialbility Time Segment. To Add a New Time Segment, double click anywhere outside. To Delete, click once and click the red X.)</span>
                                                        <div>
                                                        <telerik:RadScheduler ID="RadScheduler1" runat="server" DayEndTime="23:59:59"
                                                        RowHeight="16px" SelectedView="WeekView"
                                                        WorkDayEndTime="8.00:00:00" WorkDayStartTime="00:00:00"
                                                        AllowDelete="False"
                                                        NumberOfHoveredRows="1" SelectedDate="2012-04-16"
                                                        EnableExactTimeRendering="True" Height="460px" Skin="Office2010Black"
                                                        onclientappointmentcontextmenu="hideActiveToolTip"
                                                        onclientappointmentdoubleclick="hideActiveToolTip"
                                                        onclientrecurrenceactiondialogshowing="hideActiveToolTip"
                                                            OverflowBehavior="Expand">
                                                        <AdvancedEditTemplate>
                                                             <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                                                                 Subject='<%# Bind("Subject") %>'
                                                                 Description='<%# Bind("Description") %>'
                                                                 Start='<%# Bind("Start") %>'
                                                                 End='<%# Bind("End") %>'
                                                                 RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                                                                    Reminder='<%# Bind("Reminder") %>'
                                                                 UserID='<%# Bind("User") %>'
                                                                 RoomID='<%# Bind("Room") %>'
                                                                    TimeZoneID='<%# Bind("TimeZoneID") %>' />
                                                                 <%--AppointmentColor='<%# Bind("AppointmentColor") %>' --%>
                                                         </AdvancedEditTemplate>
                                                         <AdvancedInsertTemplate>
                                                             <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
                                                                 Subject='<%# Bind("Subject") %>'
                                                                 Start='<%# Bind("Start") %>'
                                                                 End='<%# Bind("End") %>'
                                                                 Description='<%# Bind("Description") %>'
                                                                 RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                                                                    Reminder='<%# Bind("Reminder") %>'
                                                                 UserID='<%# Bind("User") %>'
                                                                 RoomID='<%# Bind("Room") %>'
                                                                    TimeZoneID='<%# Bind("TimeZoneID") %>' />
                                                                 <%--AppointmentColor='<%# Bind("AppointmentColor") %>' --%>
                                                         </AdvancedInsertTemplate>

                                                        <AdvancedForm Modal="True" Width="400px" />

                                                        <ResourceTypes>
                                                        <telerik:ResourceType DataSourceID="SqlDataSource2" ForeignKeyField="USERID"
                                                        KeyField="ID" Name="Users" TextField="USERNAME" />
                                                        </ResourceTypes>
                                                        <TimelineView UserSelectable="False" />
                                                        <WeekView DayEndTime="23:59:59" ColumnHeaderDateFormat="dddd"
                                                            GroupingDirection="Vertical" />
                                                        <Localization AdvancedEditAppointment="Edit" AdvancedNewAppointment="New"
                                                            AllDay="Range" />
                                                        <MonthView FirstDayHeaderDateFormat="MMMM dd" ColumnHeaderDateFormat="MMMM dddd"
                                                            HeaderDateFormat="MMMM, yyyy" />
                                                    </telerik:RadScheduler>
                                                    </div>
                                                    <div align="center">                                                   
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                                        </div>
                                                       
<%--                                                        &nbsp;<asp:SqlDataSource
                                                       
                                                        ID="SqlDataSource1" runat="server"
                                                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                                        DeleteCommand="DELETE FROM &quot;AVAILABILITY_TEST&quot; WHERE &quot;ID&quot; = :ID"
                                                        InsertCommand="INSERT INTO &quot;AVAILABILITY_TEST&quot; (&quot;ID&quot;, &quot;SUBJECT&quot;, &quot;START_TIME&quot;, &quot;END_TIME&quot;, &quot;USERID&quot;, &quot;RECURRENCERULE&quot;, &quot;RECURRENCEPARENTID&quot;) VALUES (:ID, :SUBJECT, :START_TIME, :END_TIME, :USERID, :RECURRENCERULE, :RECURRENCEPARENTID)"
                                                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                                                        SelectCommand="SELECT * FROM &quot;AVAILABILITY_TEST&quot;"
                                                        UpdateCommand="UPDATE &quot;AVAILABILITY_TEST&quot; SET &quot;SUBJECT&quot; = :SUBJECT, &quot;START_TIME&quot; = :START_TIME, &quot;END_TIME&quot; = :END_TIME, &quot;USERID&quot; = :USERID, &quot;RECURRENCERULE&quot; = :RECURRENCERULE, &quot;RECURRENCEPARENTID&quot; = :RECURRENCEPARENTID WHERE &quot;ID&quot; = :ID">
                                                        <DeleteParameters>
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                        </DeleteParameters>
                                                        <InsertParameters>
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                            <asp:Parameter Name="SUBJECT" Type="String" />
                                                            <asp:Parameter Name="START_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="END_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="USERID" Type="Decimal" />
                                                            <asp:Parameter Name="RECURRENCERULE" Type="String" />
                                                            <asp:Parameter Name="RECURRENCEPARENTID" Type="Decimal" />
                                                        </InsertParameters>
                                                        <UpdateParameters>
                                                            <asp:Parameter Name="SUBJECT" Type="String" />
                                                            <asp:Parameter Name="START_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="END_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="USERID" Type="Decimal" />
                                                            <asp:Parameter Name="RECURRENCERULE" Type="String" />
                                                            <asp:Parameter Name="RECURRENCEPARENTID" Type="Decimal" />
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                        </UpdateParameters>
                                                    </asp:SqlDataSource><asp:SqlDataSource
                                                        ID="SqlDataSource2" runat="server"
                                                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                                                        SelectCommand="SELECT &quot;ID&quot;, &quot;USERNAME&quot; FROM &quot;AVAILABILITY_TEST_USERS&quot;">
                                                    </asp:SqlDataSource>--%>
                                                   
                    
                                                    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="130"
                                                            Height="40" Skin = ""
                                                            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" />
                                                    <div style="display: none;">
                                                        <div id="contentContainer">
                                                        <%--
                                                            Starts on: <span id="startTime"></span>
                                                            <br />
                                                            Ends on: <span id="endTime"></span>
                                                            <hr />
                   
                                                            Description:
                                                        --%>
                                                            <div id="descriptionDiv">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    </telerik:RadAjaxPanel>
                                                  </td>
                                            </tr>
                                           
                                        </tbody>
                                    </table>
    
    <!-- Permanent availability -->
                       
                                </div>
                            </td>
                        </tr>
                    </table>
  <!-- End Workspace -->    
 
</asp:Content>

 

3 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 20 Aug 2012, 10:43 AM
Hello Allen,

Do you receive the error only design-time? Does the control work at run-rime?
Does the error disappear when you restart the studio?

Greetings,
Helen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Allen
Top achievements
Rank 1
answered on 20 Aug 2012, 01:33 PM
Yes, I only receive the error only design-time.  The control works at run-time.
For fixinf the error, I can either restart the studio or just save the file an reopen it.
0
Helen
Telerik team
answered on 21 Aug 2012, 07:51 AM
Hi Allen,

It sounds like a Visual Studio designer issue.

Hope it is not a major show stopper for you.

Regards,
Helen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Allen
Top achievements
Rank 1
Answers by
Helen
Telerik team
Allen
Top achievements
Rank 1
Share this question
or