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

RadScheduler Advanced Form wont Cancel or Save

2 Answers 55 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
zx10r
Top achievements
Rank 1
zx10r asked on 27 Jul 2016, 04:55 PM

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 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 01 Aug 2016, 01:47 PM
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.
0
zx10r
Top achievements
Rank 1
answered on 01 Aug 2016, 08:59 PM
Thanks for the response but i resolved the issue. Unclosed html tags problem.
Tags
Scheduler
Asked by
zx10r
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
zx10r
Top achievements
Rank 1
Share this question
or