Radschedular

7 posts, 0 answers
  1. Keith
    Keith avatar
    9 posts
    Member since:
    Mar 2011

    Posted 05 Apr 2011 Link to this post

    When I add an event to the schedular and click the save button, it does not show the event i just enter,
    can someone help me?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Apr 2011 Link to this post

    Hello Kaith,

    I am not sure about the way you attached the event. One approach is to attach AppointmentCreated event.

    Take a look at the following help article for more on this.
    http://www.telerik.com/help/aspnet-ajax/scheduler-events.html

    Thanks,
    Shinu.
  3. Keith
    Keith avatar
    9 posts
    Member since:
    Mar 2011

    Posted 05 Apr 2011 Link to this post

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    <!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></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            DeleteCommand="DELETE FROM [AppointmentData] WHERE [ID] = @ID"
            InsertCommand="INSERT INTO [AppointmentData] ([ID], [StartTime], [EndTime], [Subject]) VALUES (@ID, @StartTime, @EndTime, @Subject)"
            SelectCommand="SELECT * FROM [AppointmentData]"
            
            UpdateCommand="UPDATE [AppointmentData] SET [StartTime] = @StartTime, [EndTime] = @EndTime, [Subject] = @Subject WHERE [ID] = @ID">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="ID" Type="Int32" />
                <asp:Parameter Name="StartTime" Type="DateTime" />
                <asp:Parameter Name="EndTime" Type="DateTime" />
                <asp:Parameter Name="Subject" Type="String" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="StartTime" Type="DateTime" />
                <asp:Parameter Name="EndTime" Type="DateTime" />
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="ID" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px"
            width="955px">
            <telerik:RadScheduler runat="server" ID="RadScheduler1" DataEndField="EndTime" DataKeyField="ID"
        DataSourceID="SqlDataSource1" DataStartField="StartTime"
        DataSubjectField="Subject" Height="468px" Skin="Web20">
            </telerik:RadScheduler>
        </telerik:RadAjaxPanel>
        </form>
    </body>
    </html>

  4. Keith
    Keith avatar
    9 posts
    Member since:
    Mar 2011

    Posted 05 Apr 2011 Link to this post

    After reviewing the link that you told me to review I add the eventhandlers, the eventhandlers are firing via the AppointmentInsert but, when I click save I d'ont see the description I just saved. And also the data is not being save in the database or datasoure
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 06 Apr 2011 Link to this post

    Hello Keith,

    Could you please send me your project so I can inspect it and help you?

    Thank you!

    Regards,
    Veronica Milcheva
    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
  6. Roopesh
    Roopesh avatar
    2 posts
    Member since:
    Oct 2010

    Posted 27 Apr 2011 Link to this post

    I have created a user control  and  placed a  RadScheduler in it. When Its dragged on to a content page,Only the first time all  events  are working fine then after a reload or postback scheduler stucks.But in a normal page it works fine.The problem causes  under master pages only.
  7. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 27 Apr 2011 Link to this post

    Hi Roopesh,

    Could you please open a new Support thread and attach the full code so I can inspect it and help you?

    Thank you!

    Kind regards,
    Veronica Milcheva
    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