Getting Error: Sys.WebForms.PageRequestManagerServerErrorException

2 posts, 0 answers
  1. Kashif
    Kashif avatar
    4 posts
    Member since:
    Jul 2012

    Posted 11 Jul 2012 Link to this post

    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
  2. Plamen
    Admin
    Plamen avatar
    2961 posts

    Posted 13 Jul 2012 Link to this post

    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.
Back to Top