BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
Hello, my events are displayed in all other views except the week view if they have a duration of 2 or more days ? is there any explanation for this? thank you
Since all the events are rendered properly in all the views, could you please share the below details to validate further and provide the prompt solution earlier?
- What are views used in your project other than the week view?
- Can you please share the particular event data which is not rendered in the week view?
- Share the Scheduler package version.
- Hello, I am using these views , Today, Month , week , Agenda, Timeline day , TimeLine month.
- the event data that are not showed are the ones that have a duration superior that a day .
- I am using the version number 19.4.0.38
Hello,
thanks for the example , in your example you display all the events from the viewBag ,in my application for performance purpose I get the events related to the dates of tha calendar (StartDate , EndDate ) in debugguing I retrieve my events and they are displayed in other views except the week. which is so weird can't seem to find the origin of this problem
here is my code
<ejs-schedule id="schedule" width="70%" cssClass="block-events" height="650px" workDays="@ViewBag.workday" locale="" currentView="Month" rowAutoHeight="true" selectedDate="Model.CurrentDate"
firstDayOfWeek="1" dataBound="onDataBound" popupOpen="onPopupOpen" actionBegin="onActionBegin" eventRendered="onEventRendered" renderCell="onRenderCell" drag="onItemDrag" navigating="onNavigating" dragStop="onDragStop" dragStart="onStart" resizeStop="onResizeStop">
<e-schedule-views>
<e-schedule-view option="Month"></e-schedule-view>
<e-schedule-view option="Week"></e-schedule-view>
<e-schedule-view option="Agenda"></e-schedule-view>
<e-schedule-view option="TimelineMonth"></e-schedule-view>
<e-schedule-view option="TimelineWeek"></e-schedule-view>
<e-schedule-view option="TimelineDay"></e-schedule-view>
</e-schedule-views>
<e-schedule-eventsettings dataSource="dataManagerEvent">
</e-schedule-eventsettings>
</ejs-schedule>
Hi Lea,
Could you please
give us more information how you filter the events based on start and end time
and also share the dataManagerEvent codes to validate and provide solution
earlier?
Regards,
Ruksar Moosa Sait
Hello,
here is the code that I use to filter my list of events
public async Task<JsonResult> GetListEventsUpdateTest([FromBody] Params param, int idContrat,int? idFet)
{
var months = MonthsBetween(param.StartDate, param.EndDate);
if (months.Count() == 3)
{
currentMonth = months.ElementAt(1).Month;
}
else if (months.Count() == 2 && param.StartDate.Day >= 24)
{
currentMonth = months.ElementAt(1).Month;
}
else if (months.Count() == 2)
{
currentMonth = months.ElementAt(1).Month;
}
else if (months.Count() == 1)
{
currentMonth = months.ElementAt(0).Month;
}
DateTime dateFet = new DateTime(param.EndDate.Year, currentMonth, 01, 0, 0, 0);
var fetDto = await _fetApiClient.GetFetByDateAndContratAsync(dateFet, idContrat);
var fetElementList= await _fetApiClient.GetElementsFetByDateAsync(param.StartDate.AddMinutes(121).Date,param.EndDate.Date,fetDto.IdFet);
var listEvents = new List<EventDto>();
try
{
var date = new DateTime();
var endDate = new DateTime();
var startDate = new DateTime();
PersonneDto currentUser = await _fetApiClient.GetCurrentUserAsync();
var listFetByIdContrat = await _fetApiClient.GetFetListByContratIdAsync(idContrat);
foreach (var element in fetElementList)
{
var histoElemntFet = new HistoEtatEltFetDto();
histoElemntFet = await _fetApiClient.GetElementFetHistoLatestByIdElementAsync(element.IdElt);
string status = "";
if(histoElemntFet != null && histoElemntFet.IdElt != Guid.Empty)
{
status = histoElemntFet.Etat.ToString();
}
var eventDto = new EventDto()
{
Id = element.IdElt,
StartTime = element.DateDeb.DateTime,
EndTime = (element.DateDeb.DateTime).AddMinutes(element.Duree),
EventType = element.TypeElt,
Subject = element.Titre,
IsAllDay = element.AllDay,
Status= status
};
listEvents.Add(eventDto);
}
}
catch (Exception ex)
{
// throw ex;
}
return new JsonResult(listEvents);
}
and for the dataManager
@{
var url = "/Fet/GetListEventsUpdateTest/?idContrat=" + Model.FetDto.IdContrat + "&idFet=" + Model.FetDto.IdFet ;
var dataManagerEvent = new DataManager() { Url = url, Adaptor = "UrlAdaptor", CrossDomain = true };
}
thank you
Hi Lea,
Could you please check the attached sample and let us know what we have missed in our sample to reproduce the reported issue?
ok I will , thank you
I cannot run the application plus in the example there is no week View
Hi Lea,
Sorry for the inconvenience.
Could you now please check the attached sample and let us know what we have missed in our sample to reproduce the reported issue?
Output screenshot:
Regards,
Ruksar Moosa Sait