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:
ahora en c#
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.
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
>
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.