RadScheduler Advanced Form wont Cancel or Save

3 posts, 0 answers
  1. zx10r
    zx10r avatar
    9 posts
    Member since:
    Jul 2016

    Posted 27 Jul Link to this post

    Hi,

    I used a sample demo for the scheduler that was posted in the forums that works with sql datasource. Everything works great but for some reason the Advanced Edit form will not register a click to Save or Cancel once the modal popup is open. The .aspx is bellow and i am not sure if im missing something.

     

    Thanks

     

    body>
        <form id="form1" runat="server">
        <div>
        
            <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
            </telerik:RadScriptManager>
        
        </div>
        <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End" 
            DataKeyField="ID" DataRecurrenceField="RecurrenceRule" AdvancedForm-Modal="true" AdvancedForm-Enabled="true"
            DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="SchedulerDataSource"
            DataDescriptionField="Description" 
            Height="700px"
            DataStartField="Start" DataSubjectField="Subject" Skin="Silk">
            <AdvancedForm Modal="true" />
            <TimelineView UserSelectable="false" />
            <ResourceTypes>
                <telerik:ResourceType DataSourceID="RoomsDataSource" ForeignKeyField="RoomID" 
                    KeyField="ID" Name="Room" TextField="RoomName" />
            </ResourceTypes>
            <ResourceStyles>
                <telerik:ResourceStyleMapping Type="Room" ApplyCssClass="rsCategoryOrange" Text="Room 101" />
                <telerik:ResourceStyleMapping Type="Room" ApplyCssClass="rsCategoryGreen" Text="Room 102" />
                <telerik:ResourceStyleMapping Type="Room" ApplyCssClass="rsCategoryPink" Text="Room 201" />
                <telerik:ResourceStyleMapping Type="Room" ApplyCssClass="rsCategoryViolet" Text="Room 202" />
            </ResourceStyles>
        </telerik:RadScheduler>
        <asp:SqlDataSource ID="SchedulerDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SchedulerConnectionString %>" 
            DeleteCommand="DELETE FROM [Appointments] WHERE [ID] = @ID" 
            InsertCommand="INSERT INTO [Appointments] ([Subject], [Start], [End], [RecurrenceRule], [RecurrenceParentID], [Description], [RoomID]) VALUES (@Subject, @Start, @End, @RecurrenceRule, @RecurrenceParentID, @Description, @RoomID)" 
            SelectCommand="SELECT [ID], [Subject], [Start], [End], [RecurrenceRule], [RecurrenceParentID], [Description], [RoomID] FROM [Appointments]" 
            
            UpdateCommand="UPDATE [Appointments] SET [Subject] = @Subject, [Start] = @Start, [End] = @End, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [Description] = @Description, [RoomID] = @RoomID WHERE [ID] = @ID">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrenceParentID" Type="Int32" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="RoomID" Type="Int32" />
                <asp:Parameter Name="ID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="Subject" Type="String" />
                <asp:Parameter Name="Start" Type="DateTime" />
                <asp:Parameter Name="End" Type="DateTime" />
                <asp:Parameter Name="RecurrenceRule" Type="String" />
                <asp:Parameter Name="RecurrenceParentID" Type="Int32" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="RoomID" Type="Int32" />
            </InsertParameters>
        </asp:SqlDataSource>
        <telerik:RadAjaxManager runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:SqlDataSource ID="RoomsDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SchedulerConnectionString %>" 
            SelectCommand="SELECT [ID], [RoomName] FROM [Rooms]"></asp:SqlDataSource>
        </form>
    </body>

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    144 posts

    Posted 01 Aug Link to this post

    Hello,

    There is a Code Library project implementing RadScheduler with SQL data source that works as expected. Would you clarify the problem you encounter? We would also greatly appreciate if you attach a sample runnable project to that we could investigate your problem locally.

    Regards,
    Peter Milchev
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. zx10r
    zx10r avatar
    9 posts
    Member since:
    Jul 2016

    Posted 01 Aug in reply to Peter Milchev Link to this post

    Thanks for the response but i resolved the issue. Unclosed html tags problem.
Back to Top