Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

114
Visualizações
fullcalendar with multiple resources populated from database

I have used free version of fullcalendar, now I need to to have multiple resources on it. is it possible to do that in free version of it? if yes does anyone have an example of it to be populated from the database? for mutiple resource should I use fullcalendar scheduler or the standard fullcaneldar does the job

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I have a lack of experience in C#, but hopefully the following example using JavaScript would help you.

First, you can get all events from your multiple resources using the free version of fullcalendar.

Second, here's one of the fullcalendar example using multiple resources.

Please refer to the doc for more details.

document.addEventListener('DOMContentLoaded', function () {
    var calendarEventsEl = document.getElementById('calendar-events');

    calendarEvents = new FullCalendar.Calendar(calendarEventsEl, {
        headerToolbar: false,
        contentHeight: 300,
        initialView: 'listUpcoming',
        views: {
            listUpcoming: {
                type: 'listMonth',
                duration: { months: 2 },
            },
            listAll: {
                type: 'listYear',
                duration: { years: 1 },
            },
        },
        eventDidMount: function (arg) {
          ...
        },

        dayHeaderDidMount: function (arg) {
          ...
        },
        eventSources: [
        ~~~~~~~~~~~~~~~
          // This is the approach how to get events from multiple resources
          {
            method: 'POST',
            url: '/calendar/get_all_for_events_01/',
            extraParams: {
                get_type: 'upcoming',
                timezone: moment.tz.guess()
            }
          },
          {
            method: 'POST',
            url: '/calendar/get_all_for_events_02/',
            extraParams: {
                get_type: 'all',
                timezone: moment.tz.guess()
            },
          }
        ],
        eventSourceSuccess: function (content, xhr) {
            ...
        },

Hope this would help.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda