Virtual Scrolling

The timeline view is virtualized which means that the markup is being generated and maintained on the fly. Navigating both vertically and horizontally through scrolling fires the onVirtualLoading lifecycle event which can be used to load the data on scroll rather than load everything on initial page rendering.

This dramatically improves performance in case of a large event count since not all data is loaded in memory from start.

Looking to load resources on scroll?  Check out this example →
Download and try example

Demo

Loading the live demo

Preview in full screen

Load events on scroll with a virtualized Timeline — only the visible date range is fetched, keeping large resource timelines responsive.

Code

mobiscroll.setOptions({
  locale:  ,
  theme: ' ',
  themeVariant: ' '
});

mobiscroll.eventcalendar('#demo-load-events-on-scroll', {
  view: {
    timeline: {
      type: 'month',
      resolutionHorizontal: 'hour',
    },
  },
  resources: [
    { id: 1, name: 'Resource 1', color: '#FF5733' },
    { id: 2, name: 'Resource 2', color: '#33FF57' },
    { id: 3, name: 'Resource 3', color: '#3357FF' },
    { id: 4, name: 'Resource 4', color: '#FF33A6' },
    { id: 5, name: 'Resource 5', color: '#FFC300' },
    { id: 6, name: 'Resource 6', color: '#DAF7A6' },
    { id: 7, name: 'Resource 7', color: '#581845' },
    { id: 8, name: 'Resource 8', color: '#900C3F' },
    { id: 9, name: 'Resource 9', color: '#C70039' },
    { id: 10, name: 'Resource 10', color: '#FF5733' },
    { id: 11, name: 'Resource 11', color: '#33FFBD' },
    { id: 12, name: 'Resource 12', color: '#FFC300' },
    { id: 13, name: 'Resource 13', color: '#FF33F6' },
    { id: 14, name: 'Resource 14', color: '#33FF57' },
    { id: 15, name: 'Resource 15', color: '#33A6FF' },
    { id: 16, name: 'Resource 16', color: '#DAF7A6' },
    { id: 17, name: 'Resource 17', color: '#581845' },
    { id: 18, name: 'Resource 18', color: '#900C3F' },
    { id: 19, name: 'Resource 19', color: '#C70039' },
    { id: 20, name: 'Resource 20', color: '#FF33F6' },
    { id: 21, name: 'Resource 21', color: '#FF5733' },
    { id: 22, name: 'Resource 22', color: '#33FF57' },
    { id: 23, name: 'Resource 23', color: '#3357FF' },
    { id: 24, name: 'Resource 24', color: '#FF33A6' },
    { id: 25, name: 'Resource 25', color: '#FFC300' },
  ],
  onVirtualLoading: function (args, inst) {
    var start = mobiscroll.formatDate('YYYY-MM-DD', args.viewStart);
    var end = mobiscroll.formatDate('YYYY-MM-DD', args.viewEnd);
    mobiscroll.getJson(
      'https://trial.mobiscroll.com/load-data-scroll/?start=' + start + '&end=' + end,
      function (data) {
        inst.setEvents(data.events);
        mobiscroll.toast({
          message: 'Loading events...',
          duration: 1000,
        });
      },
      'jsonp',
    );
  },
});
  

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.