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

Getting Error: Sys.WebForms.PageRequestManagerServerErrorException

1 Answer 42 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kashif
Top achievements
Rank 1
Kashif asked on 11 Jul 2012, 12:53 PM
Hi, my Default.aspx looks like: 

<telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="de-DE"
        DataEndField="BIS" DataKeyField="RAUMID" DataSourceID="SqlDataSource1"
        DataStartField="VON" DataSubjectField="RAUMBEZEICHNUNG" Height="600px"
        HoursPanelTimeFormat="HH:mm" Skin="Black" SelectedView="TimelineView">
     
        <ResourceTypes>
            <telerik:ResourceType AllowMultipleValues="True" DataSourceID="SqlDataSource2"
                ForeignKeyField="RAUMID" KeyField="RAUMID" Name="Resource Type 0"
                TextField="BEZEICHNUNG" />
        </ResourceTypes>
     
    <TimelineView SlotDuration="01:00:00"  NumberOfSlots = "24" ColumnHeaderDateFormat="HH:mm" />
   
    <TimelineView UserSelectable="true" GroupBy="Resource Type 0"
            GroupingDirection="Vertical" />
 
    <DayView DayStartTime = "08:00:00" DayEndTime = "00:00:00"  EnableExactTimeRendering= "true" ShowHoursColumn ="true"/>
     
    </telerik:RadScheduler>
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:Book-IT-LHConnectionString %>"
        SelectCommand="SELECT [RAUMBEZEICHNUNG], [RAUMID], [VON], [BIS] FROM [VIEW_RAUMBUCHUNG]" >
    </asp:SqlDataSource>
 
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:Book-IT-LHConnectionString %>"
        SelectCommand="SELECT [RAUMID], [BEZEICHNUNG] FROM [VIEW_RAUM]">
    </asp:SqlDataSource>

The Data is displayed correctly. But if i want to switch for example between Timeline and DayView or i want to Edit an Appointment, i get an Error: 
Sys.WebForms.PageRequestManagerServerErrorException

Why is that?

If i Delete the ResourceTyp so i can Switch between the different views and i can edit the Appointment. But theres another Problem. For Example: My Appointment is from 16:00 until 17:00 at 11.07.2012 which is correcly displayed in the Dayview, but in the editMode the Date and the time ist wrong. How can i synchronize that ?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 13 Jul 2012, 03:35 PM
Hello Kashif,

 
You can refer to this help article where is explained how to implement a provider that supports multi-valued resources. I am attaching a sample project as well. 

Hope this will be helpful. 

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Kashif
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or