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

I do not see the popup reminder

3 Answers 41 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hugo
Top achievements
Rank 1
Hugo asked on 25 Oct 2011, 12:09 AM
Hello,

I'm using RadScheduler, and earlier in a post I saw an example of how to use a reminder, with a dropdownlist as I am customizing.
The problem is that I did exactly as stated in the example I saved in my database and that the inforacion no problem just send me no notice, if I open the application or not orders left open the popup reminder. I spent part of the code I'm using:

<InlineEditTemplate>
                                   <tr height="20px"
                                        <td align="right" class="style2" valign="top"
                                            Recordatorio
                                        </td
                                        <td class="style3">
                                        <asp:DropDownList ID="cboReminder" runat="server" >
                                           <asp:ListItem Text="Ninguno" Value="Ninguno"></asp:ListItem
                                           <asp:ListItem Text="5 minutos" Value="5"></asp:ListItem
                                           <asp:ListItem Text="10 minutos" Value="10"></asp:ListItem
                                           <asp:ListItem Text="30 minutos" Value="30"></asp:ListItem>
                                           <asp:ListItem  Text="1 hora" Value="60" ></asp:ListItem>
                                            <asp:ListItem  Text="2 horas" Value="120" ></asp:ListItem>
                                            <asp:ListItem  Text="3 horas" Value="180" ></asp:ListItem>
                                            <asp:ListItem  Text="4 horas" Value="240" ></asp:ListItem>
                                            <asp:ListItem  Text="5 horas" Value="300" ></asp:ListItem>
                                            <asp:ListItem  Text="6 horas" Value="360" ></asp:ListItem
                                            <asp:ListItem Text="7 horas" Value="420" ></asp:ListItem>
                                            <asp:ListItem  Text="8 horas" Value="480" ></asp:ListItem>
                                            <asp:ListItem  Text="9 horas" Value="540" ></asp:ListItem>
                                            <asp:ListItem  Text="10 horas" Value="600" ></asp:ListItem>
                                            <asp:ListItem  Text="11 horas" Value="660" ></asp:ListItem>
                                            <asp:ListItem  Text="12 horas" Value="720" ></asp:ListItem>
                                            <asp:ListItem  Text="18 horas" Value="1080" ></asp:ListItem>
                                            <asp:ListItem  Text="1 día" Value="1440" ></asp:ListItem>
                                            <asp:ListItem  Text="2 días" Value="2880" ></asp:ListItem>
                                            <asp:ListItem  Text="3 días" Value="4320" ></asp:ListItem>
                                            <asp:ListItem  Text="4 días" Value="5760" ></asp:ListItem>
                                            <asp:ListItem  Text="1 semana" Value="10080" ></asp:ListItem>
                                            <asp:ListItem  Text="2 semanas" Value="20160" ></asp:ListItem>                                           
                                        </asp:DropDownList>
                                        </td>
                                    </tr>    
                                       </InlineEditTemplate>
  ahora en c#
  protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
        
if (e.CommandName == "Insert")
            {
                Gestion gestion;
                gestion = new Gestion();
  
                GestionBO gestionBO;
                gestionBO = new GestionBO();
  
                string save;
  
                RadDateTimePicker Fecha = (RadDateTimePicker)e.Container.FindControl("dtpStart");
                TextBox Contacto = (TextBox)e.Container.FindControl("txtContacto");
                RadComboBox Evento = (RadComboBox)e.Container.FindControl("cboEvento");
                RadComboBox SubEvento = (RadComboBox)e.Container.FindControl("cboSubEvento");
                RadDateTimePicker FechaPromesa = (RadDateTimePicker)e.Container.FindControl("dtpEnd");
                RadComboBox Estatus = (RadComboBox)e.Container.FindControl("cboEstatus");             
                TextBox observaciones = (TextBox)e.Container.FindControl("txtObservaciones");
                DropDownList Recordatorio = (DropDownList)e.Container.FindControl("cboReminder");
                RadWindowManager RadWindowManager1 = (RadWindowManager)e.Container.FindControl("RadWindowManager1");
  
                gestion.DatFecha = Fecha.SelectedDate.Value;                
                gestion.StrContacto = Contacto.Text;
                gestion.IntEvento = Convert.ToInt32(Evento.SelectedValue);
                gestion.IntSubEvento = Convert.ToInt32(SubEvento.SelectedValue);
                gestion.DatFechaPromesa = FechaPromesa.SelectedDate.Value;                            
                gestion.IntEstatus = Convert.ToInt32(Estatus.SelectedValue);
                gestion.strReminder = Convert.ToString(Recordatorio.SelectedValue);
                gestion.StrObservacion = observaciones.Text;
  
                Appointment appointmentToUpdate = RadScheduler1.PrepareToEdit(e.Container.Appointment, RadScheduler1.EditingRecurringSeries);
                if (Recordatorio.SelectedValue != "none")
                {
                    appointmentToUpdate.Reminders.Add(new Reminder(int.Parse(Recordatorio.SelectedValue)));
                }
                RadScheduler1.UpdateAppointment(appointmentToUpdate);
  
                if (vsEvent == 0)
                {
                    gestion.Operation = 1;
                    gestion.IntCliente = Convert.ToInt32(Session["intCliente"].ToString());
                      
                }
                else
                {
                    gestion.Operation = 2;
                    HiddenField hddCliente = (HiddenField)e.Container.FindControl("hddCliente");   
                    gestion.IntCliente = Convert.ToInt32(hddCliente.Value); 
                    gestion.Id = vsId;
                }
  
                save = gestionBO.Save(gestion);
  
                if (Convert.ToInt32(save) > 0)
                {
                    RadScheduler1.DataSource = Data();
                    RadScheduler1.DataBind();
                }
                else
                {
                    RadWindowManager1.RadAlert(gestion.ErrorMessage, 330, 100, "Server RadAlert", "alertCallBackFn");
                }
  
                gestion = null;
                gestionBO = null;
            }
            if (e.CommandName == "Cancel")
            {
                vsEvent = 0;
                vsId = 0;
            }
        }

Take that example because that just as I am working with my RadScheduler1_AppointmentCommand've seen other examples where they use one. Js and more things but the truth is more complicated me and I will make things move more what I'm doing, I hope and I can help if I have an error or a solution as this I saw was easier for me what I'm working.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Oct 2011, 07:01 PM
Hi Hugo,

It is not very clear which is the post that is used and what exactly are you trying to achieve. You can refer to the Reminders demo.

Kind regards,
Plamen Zdravkov
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
0
Hugo
Top achievements
Rank 1
answered on 26 Oct 2011, 09:52 PM
Forum I found an example of a reminder, leave the link http://www.telerik.com/community/forums/aspnet-ajax/scheduler/how-to-use-reminders.aspx

In this example one of you explain how to enable a reminder, since I'm customizing my Scheduler and that is how my code fits.

What exactly but I did not send the reminder popup
0
Plamen
Telerik team
answered on 28 Oct 2011, 03:42 PM
Hello Hugo,

We tested your code in a simple web site and it worked as expected at our end. Please, review the attached sample and let us know what is different with your actual implementation.

Greetings, Plamen Zdravkov
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
Hugo
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Hugo
Top achievements
Rank 1
Share this question
or