|
Title: Calendar widget with data being retrieved from database Post by: MFS on March 02, 2022, 06:25:15 AM Hi,
we would like to use the easyui-calendar widget to show a calendar within our app and also mark dates that are taken/have events on that day. When loading the data first and than initilazing the calendar widget it works fine, but when we need to fetch more/new data based on calendar navigation events we can't await for that data to be returned before the formatter and validator method are called. The only way to achieve this atm that we can see is to load all the data from the database before initializing the calendar widget which is not optimal at all since there are way too many records that would need to be retrieved at that point and would make the load time much slower. What would be nice is to be able to specify a url property to the calendar in the same way we can do it to the datagrid, which would than get called everytime an onNavigation event is fired and/or even on click but for on click we can hanlde that our self. Code: //example code Does anyone have any suggestions for this or should we switch to something like fullcalendar for even calendars and stick to easyui for simple form and grid stuff ? Title: Re: Calendar widget with data being retrieved from database Post by: jarry on March 03, 2022, 12:38:19 AM This is the simple example that shows how to format a date with the ext data properties.
Code: // The data to store the ext properties for each date. |