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

appointments shifted

6 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
TT
Top achievements
Rank 1
TT asked on 30 Jul 2013, 09:00 AM
Hi, i have this problem, i have 30 minutes appointments and 30 minutes slots in the radscheduler, but some appointments are shifted,you can see it in the image.
It's happend with appointments that start after 16:00 only, i tried with just one appointment and it's shiffed to left.
I tried with 60 minutes slots and it's works perfectly, but with 30 minutes slots it'doesn't, why?

6 Answers, 1 is accepted

Sort by
0
TT
Top achievements
Rank 1
answered on 03 Sep 2013, 07:20 AM
Anyone can help me?
0
Boyan Dimitrov
Telerik team
answered on 05 Sep 2013, 03:28 PM
Hello,

Could you please confirm whether you are using the latest RadControls Q2 2013 version ( 2013.2.717)? Please clarify whether you are facing that problem under all major browser or only under a specific one? Are you using any custom styles in your application?

Regards,
Boyan Dimitrov
Telerik
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 the blog feed now.
0
TT
Top achievements
Rank 1
answered on 18 Oct 2013, 02:53 PM
Hi, i removed all css code, but it's still doesn't work.

Now in the code i have only javascript metods then the raddock with the appointment form and the radscheduler.
This is my code:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPlanning2.master" AutoEventWireup="true"
    CodeFile="ERPPlanning.aspx.cs" Inherits="ERPPlanning" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        
    </style>
    <br />
    <telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
        <script type="text/javascript">

            function openForm() {
                var dock = $find("<%= RadDock1.ClientID %>");
                // Center the RadDock on the screen
                var viewPort = $telerik.getViewPortSize();
                var xPos = Math.round((viewPort.width - parseInt(dock.get_width())) / 2);
                var yPos = Math.round((viewPort.height - parseInt(dock.get_height())) / 2);

                $telerik.setLocation(dock.get_element(), { x: xPos, y: 10 });

                dock.set_closed(false);

                var descriptionTextBox = $get('<%= DescriptionText.ClientID %>');
                descriptionTextBox.focus();

                Sys.Application.remove_load(openForm);
            }

            function hideForm() {
                var dock = $find("<%= RadDock1.ClientID %>");
                dock.set_closed(true);

                return true;
            }


            function Export(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }


            function dockMoved(sender, args) {
                //Return RadDock to his original HTML parent so it gets updated via ajax
                $get("<%= DockPanel.ClientID %>").appendChild(sender.get_element());
            }
            function OnClientAppointmentClick(sender, args) {
                sender._contextMenuAppointment = args.get_appointment();
                args.get_appointment().showContextMenu(args.get_domEvent());


            }


            function OnClientTimeSlotClick(sender, args) {
                sender._showTimeSlotContextMenu(args.get_domEvent(), args.get_targetSlot());
            }

            function min30(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }
            function min15(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }
            function min60(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }
            function mezza(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }
            function tutto(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }

            function aggiorna(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }

            function automatico(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }

            function prestazioni(sender, e) {
                $find("<%= DockPanel.ClientID %>").__doPostBack(sender.name, "");
            }

            function OnClientFormCreated(sender, eventArgs) {
                $telerik.$(".rsAdvancedEdit").css("top", "10px");
                $telerik.$(".rsAdvancedEdit").css("left", "347px");
            }

         

        </script>
    </telerik:RadScriptBlock>
    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
        <ContentTemplate>
            <asp:Label ID="lbldataora" runat="server" Text=""></asp:Label>
            <asp:Button ID="btngeneraAppuntamenti" runat="server" Text="Appuntamenti automatico"
                Visible="false" OnClick="btngeneraAppuntamenti_Click" OnClientClick="automatico(this, event); return false;" />
            <br />
            <asp:Panel runat="server" ID="DockPanel2">
                <div style="float: right; margin-right: 20px">
                    <asp:Button ID="btnmezza" runat="server" Text="Mezza giornata" OnClientClick="mezza(this, event); return false;"
                        Visible="true" OnClick="btnmezza_Click" />
                    <asp:Button ID="btntutto" runat="server" Text="Giornata" OnClientClick="tutto(this, event); return false;"
                        Visible="true" OnClick="btntutto_Click" Font-Bold="true" />
                    <asp:Button ID="btn15" runat="server" Text="15 minuti" OnClientClick="min45(this, event); return false;"
                        Visible="true" OnClick="btn15_Click" />
                    <asp:Button ID="btn30" runat="server" Text="30 minuti" OnClientClick="min30(this, event); return false;"
                        Visible="true" OnClick="btn30_Click" Font-Bold="true" />
                    <asp:Button ID="btn60" runat="server" Text="60 minuti" OnClientClick="min60(this, event); return false;"
                        Visible="true" OnClick="btn60_Click" />
                </div>
                <div style="float: left; margin-left: 20px">
                    <asp:Button ID="btnprestazioni" runat="server" Text="Sincronizza prestazioni" OnClientClick="prestazioni(this, event); return 

false;"
                        Visible="true" OnClick="btnprestazioni_Click" />
                    <asp:Button ID="btnaggiorna" runat="server" Text="Aggiorna" OnClientClick="aggiorna(this, event); return false;"
                        Visible="true" OnClick="btnaggiorna_Click" />
                </div>
            </asp:Panel>
            <br />
            <br />
            <asp:Panel runat="server" ID="DockPanel" Style="top: 10px">
                <telerik:RadDock runat="server" ID="RadDock1" Width="650px" Height="460px" Top="120px"
                    Closed="true" Style="z-index: 2000; top: 10px" Title="Dettaglio appuntamento"
                    OnClientDockPositionChanged="dockMoved" BackColor="#FFEED5" BorderColor="#FFE6BF"
                    BorderStyle="Solid" BorderWidth="1px">
                    <Commands>
                        <telerik:DockCloseCommand />
                    </Commands>
                    <ContentTemplate>
                        <div class="editForm">
                            <div class="header">
                                <asp:Label runat="server" ID="StatusLabel"></asp:Label>
                            </div>
                            <div class="content">
                                <table>
                                    <tr>
                                        <td style="width: 310px">
                                            <asp:Label ID="Label4" runat="server" Text="Descrizione:" Width="80px"></asp:Label><br />
                                            <asp:TextBox runat="server" ID="DescriptionText" Width="285px"></asp:TextBox>
                                            <asp:RequiredFieldValidator runat="server" ID="DescriptionTextRequiredFieldValidator"
                                                Display="Dynamic" ControlToValidate="DescriptionText" ErrorMessage="Campo obbligatorio" />
                                            <br />
                                            <br />
                                            <asp:Label ID="Label3" runat="server" Text="Anagrafica:"></asp:Label><br />
                                            <asp:DropDownList ID="lista_anagrafiche" runat="server" Width="290px">
                                            </asp:DropDownList>
                                            <br />
                                            <br />
                                            Articolo:<br />
                                            <asp:DropDownList ID="lista_articoli" runat="server" Width="290px">
                                            </asp:DropDownList>
                                            <br />
                                            <br />
                                            <asp:Label ID="Label2" runat="server" Text="Inizio:" Width="40px"></asp:Label>
                                            <telerik:RadDateTimePicker ID="StartTime" runat="server" TimePopupButton-ToolTip="Scegli ora"
                                                DatePopupButton-ToolTip="Scegli giorno" TimeView-Interval="00:30:00" TimeView-EndTime="20:30"
                                                TimeView-StartTime="08:00" TimeView-EnableViewState="True">
                                            </telerik:RadDateTimePicker>
                                            <asp:RequiredFieldValidator runat="server" ID="StartTimeRequiredFieldValidator" Display="Dynamic"
                                                ControlToValidate="StartTime" ErrorMessage="Campo obbligatorio" />
                                            <br />
                                            <br />
                                            <asp:Label ID="Label1" runat="server" Text="Fine:" Width="40px"></asp:Label>
                                            <telerik:RadDateTimePicker ID="EndTime" runat="server" TimePopupButton-ToolTip="Scegli ora"
                                                DatePopupButton-ToolTip="Scegli giorno" TimeView-Interval="00:30:00" TimeView-StartTime="08:00">
                                            </telerik:RadDateTimePicker>
                                            <asp:RequiredFieldValidator runat="server" ID="EndTimeRequiredFieldValidator" Display="Dynamic"
                                                ControlToValidate="EndTime" ErrorMessage="Campo obbligatorio" />
                                            <asp:Label ID="lblavviso" runat="server" Text="La data di fine deve essere maggiore della data inizio"
                                                ForeColor="Red" Visible="false"></asp:Label>
                                        </td>
                                        <td style="vertical-align: top">
                                            <asp:Label ID="Label5" runat="server" Text="Note:" Width="80px"></asp:Label><br />
                                            <asp:TextBox ID="txtnote" Text="" runat="server" TextMode="MultiLine" Height="135px"
                                                Width="280px"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <table>
                                    <tr>
                                        <td style="width: 310px">
                                            <asp:Label ID="Label6" runat="server" Text="Assegnato a:"></asp:Label>
                                            <asp:DropDownList runat="server" ID="UserDropDown" DataSourceID="RoomsDataSource"
                                                DataTextField="RoomName" DataValueField="ID" Width="180px">
                                            </asp:DropDownList>
                                            <br />
                                            <br />
                                            <asp:Label ID="Label7" runat="server" Text="Attrezzatura:"></asp:Label>
                                            <asp:DropDownList ID="lista_attrezzatura" runat="server" Width="180px">
                                            </asp:DropDownList>
                                        </td>
                                      <td rowspan="2" style="vertical-align:top">
                                             <asp:Label ID="lbldati" runat="server" Text="Dati anagrafica:"></asp:Label>
                                          <br /> <br />
                                           <asp:Label ID="lblindirizzo" runat="server" Text=""></asp:Label>
                                          <br /> <br />
                                           <asp:Label ID="lblcap" runat="server" Text=""></asp:Label>  <asp:Label ID="lblcitta" runat="server" 

Text=""></asp:Label>
                                          <br /> <br />
                                            <asp:Label ID="lbltel" runat="server" Text=""></asp:Label>
                                      </td>

                                        </tr>
                                    <tr>
                                        <td>
                                            <br />
                                            <table>
                                                <tr>
                                                    <td>
                                                        100%:
                                                    </td>
                                                    <td style="width: 50px">
                                                        <asp:CheckBox runat="server" ID="check_sconto" />
                                                    </td>
                                                    <td>
                                                        Nuovo:
                                                    </td>
                                                    <td style="width: 50px">
                                                        <asp:CheckBox runat="server" ID="check_nuovo" />
                                                    </td>
                                                    <td>
                                                        Ultimo:
                                                    </td>
                                                    <td>
                                                        <asp:CheckBox runat="server" ID="check_ultimo" />
                                                    </td>
                                                </tr>
                                            </table>
                                            <br />
                                            <asp:Label runat="server" Text="Reminder" ID="lblReminders" Visible="false"></asp:Label>
                                            <telerik:RadComboBox runat="server" ID="ReminderDropDown" Width="120px" Visible="false">
                                                <Items>
                                                    <telerik:RadComboBoxItem Text="None" Value="" />
                                                    <telerik:RadComboBoxItem Text="0 minutes" Value="0" />
                                                    <telerik:RadComboBoxItem Text="1 minute" Value="5" />
                                                    <telerik:RadComboBoxItem Text="2 minutes" Value="10" />
                                                    <telerik:RadComboBoxItem Text="3 minutes" Value="15" />
                                                    <telerik:RadComboBoxItem Text="4 minutes" Value="30" />
                                                    <telerik:RadComboBoxItem Text="1 hour" Value="60" />
                                                    <telerik:RadComboBoxItem Text="2 hours" Value="120" />
                                                    <telerik:RadComboBoxItem Text="3 hours" Value="180" />
                                                    <telerik:RadComboBoxItem Text="4 hours" Value="240" />
                                                    <telerik:RadComboBoxItem Text="5 hours" Value="300" />
                                                    <telerik:RadComboBoxItem Text="6 hours" Value="360" />
                                                    <telerik:RadComboBoxItem Text="7 hours" Value="420" />
                                                    <telerik:RadComboBoxItem Text="8 hours" Value="480" />
                                                    <telerik:RadComboBoxItem Text="9 hours" Value="540" />
                                                    <telerik:RadComboBoxItem Text="10 hours" Value="600" />
                                                    <telerik:RadComboBoxItem Text="11 hours" Value="660" />
                                                    <telerik:RadComboBoxItem Text="12 hours" Value="720" />
                                                    <telerik:RadComboBoxItem Text="18 hours" Value="1080" />
                                                    <telerik:RadComboBoxItem Text="1 day" Value="1440" />
                                                    <telerik:RadComboBoxItem Text="2 days" Value="2880" />
                                                    <telerik:RadComboBoxItem Text="3 days" Value="4320" />
                                                    <telerik:RadComboBoxItem Text="4 days" Value="5760" />
                                                    <telerik:RadComboBoxItem Text="1 week" Value="10080" />
                                                    <telerik:RadComboBoxItem Text="2 weeks" Value="20160" />
                                                </Items>
                                            </telerik:RadComboBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="footer">
                                <asp:Label ID="lblavviso2" runat="server" Text="Impossibile salvare. Attrezzatura occupata nella fascia oraria 

specificata"
                                    ForeColor="Red" Font-Size="Small" Visible="false"></asp:Label>
                                <asp:Button runat="server" ID="SubmitButton" Text="Salva" OnClick="SubmitButton_Click" />
                                 <asp:Button runat="server" ID="btnforza" Text="Forza salva" OnClick="SubmitButtonForza_Click" Visible="false"/>
                                <button onclick="hideForm();" type="button" style="margin-top: 5px; font-family: verdana;
                                    font-size: 11px;">
                                    Annulla</button>
                                <asp:Button runat="server" Style="margin-right: 10px; margin-top: 5px;" ID="PrintButton"
                                    Text="Stampa" OnClick="StampaButton_Click" />
                            </div>
                        </div>
                    </ContentTemplate>
                </telerik:RadDock>
            </asp:Panel>
            <telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Windows7" SelectedView="TimelineView" 
                Culture="it-IT" DayStartTime="08:00:00" OnFormCreating="RadScheduler1_FormCreating"
                Reminders-Enabled="false" FirstDayOfWeek="Monday" Height="100%" DataSourceID="SqlDataSource1"
                WorkDayStartTime="08:00" CssClass="rsCategoryRed" RowHeaderWidth="70px" DataEndField="Fine"
                DataKeyField="ID" DataStartField="Start" DataSubjectField="Subject" DataDescriptionField="Description"
                OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" DataReminderField="RecurrenceRule"
                EnableDescriptionField="True" OnAppointmentClick="RadScheduler1_OnAppointmentClick"
                OnClientAppointmentClick="OnClientAppointmentClick" OnClientTimeSlotClick="OnClientTimeSlotClick"
                WorkDayEndTime="19:30" RowHeight="79px" EnableExactTimeRendering="True" DayView-WorkDayEndTime="19:30"
                DayView-WorkDayStartTime="08:00" AdvancedForm-EnableCustomAttributeEditing="true"
                CustomAttributeNames="Terapista" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                OnAppointmentContextMenuItemClicked="RadScheduler1_OnAppointmentContextMenuItemClicked"
                OnNavigationCommand="RadScheduler1_NavigationCommand" Localization-AdvancedEditAppointment="Modifica appuntamento"
                Localization-ConfirmDeleteText="Sicuro di eliminare l'appuntamento?" Localization-ConfirmDeleteTitle="Eliminazione"
                Localization-HeaderToday="Oggi" OnAppointmentUpdate="RadScheduler1_OnAppointmentUpdate"
                Localization-AdvancedCalendarCancel="Annulla" Localization-AdvancedCalendarToday="Oggi"
                Localization-AdvancedClose="Chiudi" Localization-AdvancedDescription="Descrizione"
                Localization-AdvancedDone="Fatto" Localization-AdvancedNewAppointment="Nuovo appuntamento"
                Localization-ContextMenuDelete="Elimina" Localization-ContextMenuEdit="Modifica"
                Localization-ContextMenuGoToToday="Vai a oggi" Localization-Save="Salva" Localization-ConfirmCancel="Annulla"
                Localization-ContextMenuAddAppointment="Nuovo appuntamento" DayEndTime="19:30"
                OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated" ShowAllDayRow="False"
                Localization-HeaderDay="Gionaliero" Localization-HeaderMonth="Mese" BorderColor="#FFE6BF"
                AdvancedForm-Enabled="False" StartEditingInAdvancedForm="false">
                <AdvancedForm Modal="true" />
                <Localization AdvancedCalendarCancel="Annulla" AdvancedCalendarToday="Oggi" AdvancedClose="Chiudi"
                    AdvancedDescription="Descrizione" AdvancedDone="Fatto" AdvancedEditAppointment="Modifica appuntamento"
                    AdvancedNewAppointment="Nuovo appuntamento" ConfirmCancel="Annulla" ConfirmDeleteText="Sicuro di eliminare l'appuntamento?"
                    ConfirmDeleteTitle="Eliminazione" ContextMenuAddAppointment="Nuovo appuntamento"
                    ContextMenuDelete="Elimina" ContextMenuEdit="Modifica" ContextMenuGoToToday="Vai a oggi"
                    HeaderToday="Oggi" Save="Salva" HeaderDay="Giornaliero" HeaderWeek="Settimana" />
                <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">
                    <Pdf PageTitle="Schedule" Author="" Creator="" Title="Schedule" />
                </ExportSettings>
                <TimelineView GroupBy="Room" NumberOfSlots="24" ColumnHeaderDateFormat="t" GroupingDirection="Vertical"
                    StartTime="08:00" ShowInsertArea="false" TimeLabelSpan="1" SlotDuration="00:30:00" />
                <ResourceTypes>
                    <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID"
                        DataSourceID="RoomsDataSource" />
                </ResourceTypes>
                <ResourceHeaderTemplate>
                 

                    <asp:Label ID="ResourceLabel" runat="server" Text=""></asp:Label>
                     

                    </div>
                </ResourceHeaderTemplate>
                <TimeSlotContextMenuSettings EnableDefault="true" />
                <DayView DayEndTime="20:00:00" WorkDayEndTime="20:00:00" UserSelectable="false" />
                <WeekView UserSelectable="false" />
                <MonthView UserSelectable="false" />
                <MultiDayView DayEndTime="20:00:00" WorkDayEndTime="20.00:00:00" />
                <AppointmentContextMenuSettings EnableDefault="true" />
                <AppointmentContextMenus>
                    <telerik:RadSchedulerContextMenu ID="RadSchedulerContextMenu1" runat="server">
                        <Items>
                            <telerik:RadMenuItem runat="server" Text="Apri dettaglio" CssClass="menudestro">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" CssClass="menudestro" Text="Inserimento errato">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" CssClass="menudestro" Text="Annullato dal cliente">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" CssClass="menudestro" Text="Duplica appuntamento">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Bonus paga" CssClass="menudestro" ImageUrl="~/werp_immagini/werp/oknero.png">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Bonus non paga" CssClass="menudestro" 

ImageUrl="~/werp_immagini/werp/okrosso.png">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Fatto" CssClass="menudestro" ImageUrl="~/werp_immagini/werp/okverde.png">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Presente" CssClass="menudestro" ImageUrl="~/werp_immagini/werp/okverde.png">
                            </telerik:RadMenuItem>
                            <telerik:RadMenuItem runat="server" Text="Annulla presente" CssClass="menudestro">
                            </telerik:RadMenuItem>
                        </Items>
                    </telerik:RadSchedulerContextMenu>
                </AppointmentContextMenus>
                <AppointmentTemplate>
                    <%--   prima si evidenziava di giallo il nuovo, ora c'è l'immagine new<div class='<%# impostaCss(Convert.ToString(Eval("ID"))) 

%>'>--%>
                    <div class='<%# impostaCss(Convert.ToString(Eval("ID"))) %>'>
                        <asp:Literal ID="AppointmentSubject" runat="server" Text='<%# Eval("Subject") %>'></asp:Literal>
                    </div>
                    <%--icona nuovo--%>
                    <div style="float: left;">
                        <asp:Image ID="Image4" runat="server" ImageUrl='werp_immagini/werp/nuovo.png' Visible='<%# impostaIconNuovo(Convert.ToString

(Eval("ID"))) %>' />
                        <%--icona ultimo app--%>
                        <div style="float: left">
                            <asp:Image ID="Image1" runat="server" ImageUrl='werp_immagini/werp/ultimo.jpg' Visible='<%# impostaIconUltimo

(Convert.ToString(Eval("ID"))) %>' />
                        </div>
                        <%--icona 100% app--%>
                        <div style="float: left">
                            <asp:Image ID="Image2" runat="server" ImageUrl='werp_immagini/werp/100.png' Visible='<%# impostaIcon100(Convert.ToString

(Eval("ID"))) %>' />
                        </div>
                        <%--icona note app--%>
                        <div style="float: left;">
                            <asp:Image ID="Image3" runat="server" ImageUrl='werp_immagini/werp/note.png' Visible='<%# impostaIconNote

(Convert.ToString(Eval("ID"))) %>' />
                        </div>
                    </div>
                    <%-- <div style="float: right; margin-right: 8px">
                       <asp:Image ID="Image1" runat="server" ImageUrl='werp_cliente/categorie/uomo.jpg'
                            Visible='<%# impostaIconCat1(Convert.ToString(Eval("ID"))) %>' />
                        <asp:Image ID="Image2" runat="server" ImageUrl='werp_cliente/categorie/rugby.jpg'
                            Visible='<%# impostaIconCat2(Convert.ToString(Eval("ID"))) %>' />
                        <asp:Image ID="Image3" runat="server" ImageUrl='werp_cliente/categorie/calcio.gif'
                            Visible='<%# impostaIconCat3(Convert.ToString(Eval("ID"))) %>' />
                    </div>--%>
                </AppointmentTemplate>
                <TimeSlotContextMenus>
                    <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
                        <Items>
                            <telerik:RadMenuItem Text="Nuovo appuntamento" Value="CommandAddAppointment" />
                        </Items>
                    </telerik:RadSchedulerContextMenu>
                </TimeSlotContextMenus>
            </telerik:RadScheduler>
            <%--  SelectCommand ="SELECT Attivita.IdAttivita, Attivita.Descrizione, AttivitaRighe.Data,AttivitaRighe.Dalle, AttivitaRighe.Alle, 

Rooms.RoomName, AttivitaRighe.IdAttivitaRiga, Rooms.ID FROM Attivita INNER JOIN AttivitaRighe ON Attivita.IdAttivita = AttivitaRighe.KeyAttivita INNER 

JOIN AttivitaRigheTipi ON AttivitaRighe.KeyAttivitiaRigheTipi = AttivitaRigheTipi.IdAttivitaRigaTipo INNER JOIN AttivitaRigheRisorse ON 

AttivitaRighe.IdAttivitaRiga = AttivitaRigheRisorse.keyAttivitaRighe INNER JOIN Rooms ON AttivitaRigheRisorse.keyRisorse = Rooms.ID"--%>
            <asp:SqlDataSource ID="RoomsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:default %>"
                SelectCommand="SELECT [ID], [RoomName] FROM [Rooms] where eliminato = 0 and keyRooms is null order by ordine">
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:default %>"
                DeleteCommand="DELETE FROM [Appuntamenti] WHERE [ID] = @ID" InsertCommand="INSERT INTO [Appuntamenti] ([Subject], [Start], [Fine], 

[RecurrenceRule], [RecurrenceParentID], [Description], [RoomID], [Terapista]) VALUES (@Subject, @Start, @Fine, @RecurrenceRule, @RecurrenceParentID, 

@Description, @RoomID, @Terapista)"
                SelectCommand="SELECT * FROM [Appuntamenti] where [EliminatoErrore] =0 and [EliminatoDalCliente]=0"
                UpdateCommand="UPDATE [Appuntamenti] SET [Subject] = @Subject, [Start] = @Start, [Fine] = @Fine,[RecurrenceRule] = @RecurrenceRule, 

[RecurrenceParentID] = @RecurrenceParentID, [Description] = @Description, [RoomID] = @RoomID, [Terapista]=@Terapista WHERE [ID] = @ID">
                <DeleteParameters>
                    <asp:Parameter Name="ID" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="Subject" Type="String" />
                    <asp:Parameter Name="Start" Type="DateTime" />
                    <asp:Parameter Name="Fine" 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" />
                    <asp:Parameter Name="Terapista" Type="String" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="Subject" Type="String" />
                    <asp:Parameter Name="Start" Type="DateTime" />
                    <asp:Parameter Name="Fine" 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="Terapista" Type="String" />
                </UpdateParameters>
            </asp:SqlDataSource>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
</asp:Content>

0
Boyan Dimitrov
Telerik team
answered on 23 Oct 2013, 12:23 PM
Hello,

I am afraid that I am still not able to replicate the described issue. I have isolated the your RadScheduler control in a sample page attached to this response. As you can notice the appointments are aligned properly as expected. Please try to replicate the alignment issue with this project and let us know what exactly is different in your scenario. That way we can test it locally and be more helpful. Please find attached a screenshot showing the attached project behavior at my side tested with RadControls version 2013.2.717.


Regards,
Boyan Dimitrov
Telerik
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 the blog feed now.
0
TT
Top achievements
Rank 1
answered on 05 Nov 2013, 03:20 PM
Hi, i found that only with Chrome the issue appears! 
Well..it's not a problem, i will try with the new versione of telerik dll.

I tried to upgrade the Telerik.Web.UI.dll for test the radscheduler and i have this issue, after one click in the page (example: i change the day, i click on a button, i move forward in the calendar) the scheduler doesn't work. No buttons work.
Any ideas?
0
Boyan Dimitrov
Telerik team
answered on 08 Nov 2013, 12:03 PM
Hello,

I would like to clarify that recently we have found a problem with the RadScheduler control under Google Chrome browser and specifically shifting the appointments to the left just like shown in your initial post. I would like to clarify that if you want to avoid this appearance problem please set the RadScheduler ColumnWidth property to a specific value in pixels. The code below shows how you can set the ColumnWidth property to 76 px.
<telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Windows7" SelectedView="TimelineView"  ColumnWidth="76px" .... >
....
</telerik:RadScheduler>

Please note that this value is for sample purposes.

I would like to suggest review the following help article in case of updating the RadControls version. In the meantime I would clarify that we are not aware of such problem with RadScheduler control. Could you please confirm that you are using RadControls 2013.3.1015 version? Could you please clarify whether there are some JavaScript errors in your browser developer tools?

Looking forward to your reply.

Regards,
Boyan Dimitrov
Telerik
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 the blog feed now.
Tags
Scheduler
Asked by
TT
Top achievements
Rank 1
Answers by
TT
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or