Calender not working

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 14 Jan 2011 Link to this post

    Hello In my page i use the recurrence control and calender control but some time it's not working . IF recurrence control working then date control not work . Sometimes date control work but recurrence control not work  

    I was unable to find out the  problem exactly where occured.

    Please see following code.
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Clinics.ascx.cs" Inherits="DesktopModules_JCVideo_Clinics" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" %>
    <%@ Register TagPrefix="dnn" TagName="Profile" Src="~/DesktopModules/Admin/Security/Profile.ascx" %>
     
     
         
      
         
            <div id="FacilityTabs" runat="server">
                <telerik:RadTabStrip ID="StudentTabs" runat="server" MultiPageID="RadMultiPage1"
                    SelectedIndex="3" Align="Left" ReorderTabsOnSelect="true" Skin="Telerik" OnTabClick="FacilityTabs_TabClick">
                    <Tabs>
                        <telerik:RadTab Text="Edit Schedule">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Edit Settings">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Edit Students">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Clinics">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Add/Update Instructor">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Facilities">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
            </div>
            <div style="border-style: solid; border-color: Silver; border-width: thin; background-color: White;
                padding: 10px 10px 10px 10px">
                <table width="100%" class="table1">
                    <tr>
                        <td style="height: 40px">
                            <table>
                                <tr>
                                    <td colspan="2" style="font-size: 11pt; color: Gray">
                                        <strong>Clinics</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="font-size: 8pt">
                                        Select A Clinic To Edit:
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="ddlClinics" runat="server" Height="140px" AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlClinics_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnAddNew" runat="server" Text="Add New Clinic" OnClick="btnAddNew_Click"
                                            Width="119px" />
                                        <asp:Button ID="btnCancelAdd" runat="server" Text="Cancel" OnClick="btnCancelAdd_Click"
                                            Width="55px" Visible="False" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding-left: 15px; padding-right: 15px">
                            <div style="border-bottom-color: Silver; border-bottom-style: solid; border-bottom-width: thin;
                                height: 1px; width: 100%">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <table>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic Title
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox runat="server" ID="txtTitle">
                                                    </telerik:RadTextBox>
                                                    <%--<asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic Location
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox runat="server" Height="140px" ID="ddlLocation" AutoPostBack="true">
                                                    </telerik:RadComboBox>
                                                    <%--<asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic Price Per Student
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox runat="server" ID="txtPrice">
                                                    </telerik:RadNumericTextBox>
                                                    <%-- <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic Description
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox runat="server" ID="txtDescription" TextMode="MultiLine" Height="40px">
                                                    </telerik:RadTextBox>
                                                    <%-- <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Max # Of Students
                                                </td>
                                                <td>
                                                    <telerik:RadNumericTextBox runat="server" ID="txtMaxStudent">
                                                    </telerik:RadNumericTextBox>
                                                    <%--<asp:TextBox ID="txtMaxStudent" runat="server"></asp:TextBox>--%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnSave" runat="server" Text="Save\Update Clinic" OnClick="btnSave_Click" />
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnCancel" runat="server" Text="Cancel Clinic" OnClick="btnCancel_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td>
                                        <table>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic Start Date
                                                </td>
                                                <td>
                                                    <telerik:RadDateTimePicker ID="dtpStartDate" runat="server">
                                                    </telerik:RadDateTimePicker>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="font-size: 8pt">
                                                    Clinic End Date
                                                </td>
                                                <td>
                                                    <telerik:RadDateTimePicker ID="dtpEndDate" runat="server" OnSelectedDateChanged="dtpEndDate_SelectedDateChanged">
                                                    </telerik:RadDateTimePicker>
                                                </td>
                                            </tr>
                                            <%-- <tr>
                                        <td style="font-size: 8pt">
                                            Recurring?
                                        </td>
                                        <td>
                                             
                                        </td>
                                    </tr>--%>
                                            <tr>
                                                <td colspan="2">
                                                    <telerik:RadSchedulerRecurrenceEditor ID="RecClinic" runat="server" Visible="true"
                                                        Width="550px">
                                                    </telerik:RadSchedulerRecurrenceEditor>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding-left: 15px; padding-right: 15px">
                            <div style="border-bottom-color: Silver; border-bottom-style: solid; border-bottom-width: thin;
                                height: 1px; width: 100%">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td colspan="2" style="font-size: 8pt">
                                                <strong>Assign Instructor(s)</strong>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="font-size: 8pt">
                                                Available Instructors:
                                            </td>
                                            <td style="font-size: 8pt">
                                                Assigned Instructor(s) / Salary For Event:
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <%--  <telerik:RadListBox ID="lstbxInstructor" runat="server" DataTextField="Name"
                                Height= "140px"
                                DataValueField="InstructorID">
                                </telerik:RadListBox>--%>
                                                <asp:ListBox ID="lstbxInstructor" Height="140px" DataTextField="Name" DataValueField="InstructorID"
                                                    runat="server"></asp:ListBox>
                                            </td>
                                            <td style="font-size: 8pt">
                                                <telerik:RadGrid ID="grdInstructor" runat="server" Width="450px" AutoGenerateColumns="false"
                                                    ShowGroupPanel="false" HeaderStyle-Height="0px" OnItemCommand="grdPackage_ItemCommand"
                                                    AllowPaging="true" GridLines="Both" AllowSorting="true" BorderStyle="None" Skin="Simple"
                                                    ShowHeader="true">
                                                    <PagerStyle Mode="NextPrevAndNumeric" />
                                                    <MasterTableView EditMode="InPlace" DataKeyNames="InstructorId,Name,ClinicInstructorId,CutRate"
                                                        Width="100%" CommandItemDisplay="None">
                                                        <Columns>
                                                            <telerik:GridTemplateColumn HeaderText="Name">
                                                                <HeaderStyle Width="150px" ForeColor="GrayText" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblpkName" Text='<%# Eval("Name")%>' runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:Label ID="txtpkName" Text='<%# Eval("Name")%>' runat="server"></asp:Label>
                                                                </EditItemTemplate>
                                                                <ItemStyle HorizontalAlign="Left" />
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridTemplateColumn HeaderText="Price">
                                                                <HeaderStyle Width="150px" ForeColor="GrayText" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblPrice" Text='<%# Eval("CutRate")%>' runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="txtPrice" Text='<%# Eval("CutRate")%>' runat="server">
                                                                    </asp:TextBox>/Hour
                                                                </EditItemTemplate>
                                                                <ItemStyle HorizontalAlign="Left" />
                                                            </telerik:GridTemplateColumn>
                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                                                AutoPostBackOnFilter="true" HeaderText="Edit" EditImageUrl="../Images/edit.gif">
                                                                <HeaderStyle Width="30px" />
                                                                <ItemStyle CssClass="MyImageButton" />
                                                            </telerik:GridEditCommandColumn>
                                                            <telerik:GridButtonColumn ConfirmText="Delete this Instructor?" ConfirmDialogType="RadWindow"
                                                                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                                                UniqueName="DeleteColumn" HeaderText="Delete" ImageUrl="../Images/action_delete.gif">
                                                                <HeaderStyle Width="30px" />
                                                                <ItemStyle HorizontalAlign="Center" CssClass="MyDelImageButton" />
                                                            </telerik:GridButtonColumn>
                                                        </Columns>
                                                    </MasterTableView>
                                                </telerik:RadGrid>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnAssign" Text="Assign Instructor" runat="server" OnClick="btnAssign_Click">
                                                </asp:Button>
                                            </td>
                                            <td>
                                                <%--<asp:Button ID="btnsavesal" Text="Save\Update Salary" runat="server"></asp:Button>--%>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnAssign" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </div>
            <telerik:RadSchedulerRecurrenceEditor ID="RecEditSave" runat="server" Visible="false"
                Width="550px">
            </telerik:RadSchedulerRecurrenceEditor>
            <asp:Button runat="server" ID="hiddenTargetControlForEditModalPopup" Style="display: none" />
            <cc1:ModalPopupExtender runat="server" ID="modPopExtForEditInformation" TargetControlID="hiddenTargetControlForEditModalPopup"
                PopupControlID="divMoreInfo" BackgroundCssClass="modalBackground" CancelControlID="btnpopupOk"
                PopupDragHandleControlID="programmaticPnlEditCompany">
            </cc1:ModalPopupExtender>
    <div id="divMoreInfo" visible="false" runat="server" style="display: none; background-color: white;
        width: 260px; height: 150px; border-width: 3px; border-style: solid; border-color: Black;">
        <div>
            <table cellpadding="10px">
                <tr>
                    <td colspan="2" style="background-color: Silver;">
                        <b>
                            <asp:Label ID="lblmessageHeader" Text="Edit Lesson Time" runat="server" /></b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="btnpopupOk" runat="server" Text="OK" />
                    </td>
                </tr>
            </table>
        </div>
    </div>



    Please help me urgent ..Hello No one got this type of problem please let me knoww..
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 Jan 2011 Link to this post

    Hi rahul,

    We are not aware of such an issue with RadCalendar control and were not able to replicate similar behavior on our side. As the provided code looks ok and we are not able to isolate exact reason for the problem you are facing, please open a regular support ticket and send us a sample runnable application. Thus we will be able to debug it locally and advise you further.


    Kind regards,
    Maria Ilieva
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top