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

Problem displaying RadScheduler in a modal popup

3 Answers 155 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 05 Oct 2010, 04:02 PM
Hello,

I have a RadScheduler in a modal popup. On the first occasion of the popup being displayed the RadScheduler doesn't appear, but if I close (hide) the popup then bring it up again, the RadScheduler displays. It should also be noted that the width of the RadScheduler increases after each subsequent closure and re-opening of the popup that it is contained within, until it is 100% of the screen width.

I'm assuming that the RadScheduler isn't being instantiated properly, or binded to a data source properly.

Please can you offer any advice?

Regards

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Oct 2010, 02:40 PM
Hello Anthony,

If you use RadWindow, please make sure you set ShowContentDuringLoad="true" for the control.

Greetings,
Peter
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
0
Anthony
Top achievements
Rank 1
answered on 12 Oct 2010, 11:45 AM
I have tried using the RadWindow, and have struggled to get the correct functionality.

Consider the following aspx form:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">
            <Windows
                <telerik:RadWindow runat="server" Behavior="Default" InitialBehavior="None" AutoSize="true"
                    Left="0px" NavigateUrl="http://www.safc.com"
                    OffsetElementID="btnDialog" OpenerElementID="btnALS"
                    Title="Sunderland AFC Website" Top="30px" VisibleStatusbar="False">
                </telerik:RadWindow>
                 
                 
 
                <telerik:RadWindow ID="rwDialog" runat="server" Behavior="Close, Move"
                    Behaviors="Close, Move" InitialBehavior="None" Modal="True"
                    NavigateUrl="MyDialog.aspx" OpenerElementID="btnDialog" AutoSize="true" Width="500px">
                    <ContentTemplate>
                         
                            <telerik:RadScheduler ID="RadScheduler1" runat="server"
                                    DataDescriptionField="App_Description" DataEndField="App_End"
                                    DataKeyField="JobID" DataRecurrenceField="App_RecurrenceRule"
                                    DataRecurrenceParentKeyField="App_RecurrenceParentID" DataSourceID="Jobs"
                                    DataStartField="App_Start" DataSubjectField="App_Subject"
                                    StartInsertingInAdvancedForm="True" SelectedView="MonthView" Width="500px">
                            </telerik:RadScheduler>
                         
                            <asp:SqlDataSource ID="Jobs" runat="server"
                                ConnectionString="<%$ ConnectionStrings:Default %>"
                                DeleteCommand=""
                                InsertCommand=""
                                SelectCommand=""
                                UpdateCommand="">
                                <DeleteParameters>
                                    <asp:Parameter Name="JobID" Type="Int32" />
                                </DeleteParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="App_Subject" Type="String" />
                                    <asp:Parameter Name="App_Description" Type="String" />
                                    <asp:Parameter Name="App_Start" Type="DateTime" />
                                    <asp:Parameter Name="App_End" Type="DateTime" />
                                    <asp:Parameter Name="App_LocationID" Type="Int32" />
                                    <asp:Parameter Name="App_RecurrenceRule" Type="String" />
                                    <asp:Parameter Name="App_RecurrenceParentID" Type="Int32" />
                                    <asp:Parameter Name="App_Reminder" Type="String" />
                                    <asp:Parameter Name="App_TechnicianID" Type="Int32" />
                                    <asp:Parameter Name="App_Annotations" Type="String" />
                                </InsertParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="App_Subject" Type="String" />
                                    <asp:Parameter Name="App_Description" Type="String" />
                                    <asp:Parameter Name="App_Start" Type="DateTime" />
                                    <asp:Parameter Name="App_End" Type="DateTime" />
                                    <asp:Parameter Name="App_LocationID" Type="Int32" />
                                    <asp:Parameter Name="App_RecurrenceRule" Type="String" />
                                    <asp:Parameter Name="App_RecurrenceParentID" Type="Int32" />
                                    <asp:Parameter Name="App_Reminder" Type="String" />
                                    <asp:Parameter Name="App_TechnicianID" Type="Int32" />
                                    <asp:Parameter Name="App_Annotations" Type="String" />
                                </UpdateParameters>
                        </asp:SqlDataSource>
                    </ContentTemplate>
 
                </telerik:RadWindow>
                <telerik:RadWindow ID="RadWindow1" runat="server">
                   <ContentTemplate>
                       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                       <asp:Button ID="Button1" runat="server" Text="Click me" OnClick="Button1_Click" />
                   </ContentTemplate>
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>

Whenever I do anything in the RadScheduler, the RadWindow closes.

Reopening the RadWindow shows the RadScheduler in the correct state. For example, the following happens:

1. Click button to open the RadWindow1 (which contains the RadScheduler). RadScheduler1 loads properly and shows the appointments.
2. Double-Click a day to add a new appointment.
3. RadWindow Closes - why?
4. Click button to open RadWindow1
5. RadWindow opens with the RadScheduler displaying the New Appointment form (which has rendered incorrectly with overlapping controls - why?).
6. Cancel the New Appointment
7. RadWindow closes again.

NB - The contents of MyDialog.aspx is not being displayed in the RadWindow, but I assume that this is correct behavior for my implementation?

Surely this should be a simple and straightforward task?!

Regards
0
Peter
Telerik team
answered on 14 Oct 2010, 01:02 PM
Hello Anthony,

The overlapping controls issue of the advanced form can be fixed with the following css:
<style type="text/css">
  .rsTimePick
  {
      width: auto !important;
  }
  </style>

As for the closing RadWindow issue, I was not able to replicate it using your code. Can you send us a complete working demo of the issue?


Best wishes,
Peter
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
Tags
Scheduler
Asked by
Anthony
Top achievements
Rank 1
Answers by
Peter
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or