Hi, i want to set a generic list ( List<MyAppointment>) to a WebDayView but i have problems, the appointments are not shown, only are show if the ppoinment has alldayevent set to true.
my code :
<ig_sched:WebDayView ID="WebDayView1" runat="server" WebScheduleInfoID="wsInfo"
EnableMultiResourceCaption="True" >
</ig_sched:WebDayView>
<ig_scheduledata:WebScheduleGenericDataProvider runat="server" ID="WebScheduleGenericProvider1"
WebScheduleInfoID="wsInfo">
<AppointmentBinding DataKeyMember="ID" ResourceKeyMember="ResourceKey" />
<ResourceBinding DataKeyMember="ID" />
<VarianceBinding DataKeyMember="ID" ResourceKeyMember="ResourceKey" />
</ig_scheduledata:WebScheduleGenericDataProvider>
<ig_sched:WebScheduleInfo ID="wsInfo" runat="server" AppointmentFormPath="WebSchedule/AppointmentAdd.aspx"
ReminderFormPath="WebSchedule/Reminder.aspx" EnableRecurringActivities="True" EnableSmartCallbacks="false"
EnableMultiResourceView="True" EnableAppStyling="True" OnActivityAdding="wsInfo_ActivityAdding"
OnVarianceAdding="wsInfo_VarianceAdding">
</ig_sched:WebScheduleInfo>
Hi,
Could you show me the signature of your MyAppointment class ? Also ,how and where do you set the DataSource properties of the Generic provider ? Some sample could could additionally help me a lot to resolve the issue you're experiencing.
Thank you,
Angel
Hi many thanks for yours replaies.
i tried to do all but is imposible , WebDayView doesn't show the appoinments.
i will attach some files of my project.
Many thanks
It's strange because i wrote exatly each scripts of the webpage in the link sent in my previous post. I was able to see all appointments.
Do you have write those scripts ??
First Many thanks Pascal.
Yes i wrote all, but have you try with link webday?
with WebMonthView it work fine.
Do you talking about when tue user click in the appointment the event form appears in a modal popup ??
If it is this case, no i wrote a script to open my own event form.
I do this script:
In the <head></head>
<script type="text/javascript"> function OpenAppointmentDetail(oScheduleInfo, oEvent, oDialog, oActivity) { document.getElementById("HideIdAgenda").value = ""; var eventID = oActivity.getDataKey(); oEvent.cancel = true; //alert('EventId= ' + eventID + ' startDateTime= ' + startDate + ' Durée= ' + duration); document.getElementById("HideIdAgenda").value = eventID.toString(); __doPostBack('btnChercher', ''); }
</script>
In the <body></body>
<igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server" EnableMultiResourceView="True" FirstDayOfWeek="Sunday" OnActivityAdding="WebScheduleInfo1_ActivityAdding" OnVarianceAdding="WebScheduleInfo1_VarianceAdding" StyleSetName="Appletini" TimeDisplayFormat="Time24Hour" WorkDayEndTime="20:00"> <ClientEvents ActivityDialogOpening="OpenAppointmentDetail" /> </igsch:WebScheduleInfo>
i put in add this button
<asp:Button ID="btnChercher" runat="server" OnClick="btnChercher_Click" Text="Chercher" ClientIDMode="Static" Visible="True" Style="visibility: hidden;" />
In the code behind:
/// Méthode permettant de faire une recherche d'un rendez-vous/// </summary>/// <param name="sender"></param>/// <param name="e"></param>protected void btnChercher_Click(object sender, EventArgs e){ if (HideIdAgenda.Value != "" || HideIdAgenda.Value != "0") { Int64 idRDV = Int64.Parse(HideIdAgenda.Value.Trim()); // Your code }}