RadScheduler OnClientAppointmentDoubleClick get_appointment() returns null

3 posts, 0 answers
  1. Antonio
    Antonio avatar
    6 posts
    Member since:
    Nov 2010

    Posted 10 Jun 2013 Link to this post

    Please advise what is wrong with the below code since get_appointment returns null when going thru OnClientAppointmentDoubleClick(sender, eventArgs)
    ASP.NET version: 4.0
    OS: XP
    browser version: Google Chrome 27.0.1453.110 m
    Telerik product v. 2010.3.1215.40


    telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                <script type="text/javascript">
                    function OnClientAppointmentDoubleClick(sender, eventArgs) {
                        var apt = eventArgs.get_appointment();
                        alert("You clicked on an appointment: " + apt);
        <telerik:RadScheduler ID="RadScheduler1" runat="server"  Height="600px"
            DataEndField="ReviewEnd" DataKeyField="AgendaID" DataSourceID="SqlDataSource5"
            DataStartField="ReviewStart" DataSubjectField="Subject"
            DayEndTime="00:00:00" SelectedView="MonthView" 
            DataDescriptionField="Description" EnableDescriptionField="True"
            <Localization AdvancedAllDayEvent="Dia Completo"
                AdvancedCalendarCancel="Cancelar" AdvancedCalendarToday="Hoy"
                AdvancedClose="Cerrar" AdvancedDaily="Diario" AdvancedDay="Día"
                AdvancedDays="día(s)" AdvancedDescription="Descripción" AdvancedDone="Hecho"
                AdvancedEditAppointment="Editar cita" AdvancedEndAfter="Finalizar despues"
                AdvancedEndByThisDate="Finalizar por" AdvancedEvery="Cada"
                AdvancedFirst="primero" AdvancedFourth="cuarto"
                Show24Hours="Mostrar 24 horas..."
                ShowBusinessHours="Mostrar horario negocio..." ShowMore="más..."
                AdvancedYearly="Anual" AllDay="día" ContextMenuAddAppointment="Nueva cita"
                ContextMenuAddRecurringAppointment="Nueva cita recurrente"
                ContextMenuDelete="Borrar" ContextMenuEdit="Editar"
                ContextMenuGoToToday="Ir hoy" HeaderDay="Día" HeaderMonth="Mes"
                HeaderMultiDay="Multi-día" HeaderNextDay="día sig" HeaderPrevDay="día ant"
                HeaderTimeline="Cronología" HeaderToday="hoy" HeaderWeek="Semana"
                ReminderHour="hora" ReminderHours="horas" ReminderMinute="minuto"
                ReminderMinutes="minutos" ReminderNone="Ninguno" Reminders="Recordatorios"
                ReminderSnoozeHint="Clic Postergar para recordar de nuevo en:"
                ReminderWeek="semana" ReminderWeeks="semanas" Save="Guardar"
                ShowAdvancedForm="Opciones" />
        <asp:SqlDataSource ID="SqlDataSource5" runat="server"
            ConnectionString="<%$ ConnectionStrings:serpoldbConnectionString %>"
            SelectCommand="spAgendaSelect" SelectCommandType="StoredProcedure"
            CancelSelectOnNullParameter="False" onselected="SqlDataSource5_Selected">
                <asp:ControlParameter ControlID="RadComboBox3" DbType="Guid" Name="UserId"
                                PropertyName="SelectedValue" />
                <asp:Parameter Name="StartDate" DbType="Date" />
                <asp:Parameter Name="EndDate" DbType="Date" />
                <asp:Parameter Name="StatusID" Type="Int32" />
                <asp:ControlParameter ControlID="RadComboBox1" Name="IssueTypeID"
                                PropertyName="SelectedValue" Type="Int32" />
                <asp:ControlParameter ControlID="RadComboBox2" Name="ProjectID"
                    PropertyName="SelectedValue" Type="Int32" />          
                <asp:ControlParameter ControlID="RadComboBox4" Type="Int32" Name="PriorityID"
                                PropertyName="SelectedValue" />
  2. Plamen
    Plamen avatar
    3074 posts

    Posted 13 Jun 2013 Link to this post


    I have tested the issue you described with the version of RadControls that you shared(2010.3.1215.40) but could not observe any unusual behavior.  I am attaching my sample web page with RadScheduler that is bound to dummy XML database. Please review it and let me know if you have further question or your scenario is somehow different.

    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.
  3. Antonio
    Antonio avatar
    6 posts
    Member since:
    Nov 2010

    Posted 13 Jun 2013 Link to this post

    Hi Plamen,

    Thank you very much for you code, it was really helpful on order to solve my issue. in your example you don't use prerender which was the issue at my code. I've learned that both onprender and OnClientAppointmentDoubleClick can not be used at the same time, arguments will be null. I just removed onprerender and problem is gone!

    Thanks again

Back to Top