Asp.net:FullCalendar does not load events












0















Hello i was following several tutorials on to implement fullcalendar on my asp.net application but when i launch my application the calendar doesn't load the events .
here's my index.chtml :



@{
ViewBag.Title = "Index";
}

<div id="calender"></div>


<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title"><span id="eventTitle"></span></h4>
</div>
<div class="modal-body">
<p id="pDetails"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" />
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print" />



@section scripts{
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>

<script>
$(document).ready(function () {
var events = ;
$.ajax({
type: "GET",
url: "/conge/getConges",
success: function (data) {
$.each(data, function (i, v) {
events.push({
title: v.Subject,
description: v.Description,
start: moment(v.DateDebut),
end: v.DateFin != null ? moment(v.DateFin) : null,
color: v.themecolor,
allDay: v.IsFullDay
});
})

GenerateCalender(events);
},
error: function (error) {
alert('failed');
}
})

function GenerateCalender(events) {
$('#calender').fullCalendar('destroy');
$('#calender').fullCalendar({
contentHeight: 400,
defaultDate: new Date(),
timeFormat: 'h(:mm)a',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay,agenda'
},
eventLimit: true,
eventColor: '#378006',
events: events,
eventClick: function (calEvent, jsEvent, view) {
$('#myModal #eventTitle').text(calEvent.title);
var $description = $('<div/>');
$description.append($('<p/>').html('<b>Start:</b>' + calEvent.start.format("DD-MMM-YYYY HH:mm a")));
if (calEvent.end != null) {
$description.append($('<p/>').html('<b>End:</b>' + calEvent.end.format("DD-MMM-YYYY HH:mm a")));
}
$description.append($('<p/>').html('<b>Description:</b>' + calEvent.description));
$('#myModal #pDetails').empty().html($description);

$('#myModal').modal();
}
})
}
})
</script>
}


and the function i'm using to display it :



  public JsonResult getConges()
{
using (dbContext dbmodel = new dbContext())
{
var events = dbmodel.conges.ToList();
return new JsonResult { Data = events, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}

}


I didn't get any errors so i don't know how to solve it . i'm using mysql database .



so please if you're familiar with this error help me.



[Updated]










share|improve this question





























    0















    Hello i was following several tutorials on to implement fullcalendar on my asp.net application but when i launch my application the calendar doesn't load the events .
    here's my index.chtml :



    @{
    ViewBag.Title = "Index";
    }

    <div id="calender"></div>


    <div id="myModal" class="modal fade" role="dialog">
    <div class="modal-dialog">
    <div class="modal-content">
    <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h4 class="modal-title"><span id="eventTitle"></span></h4>
    </div>
    <div class="modal-body">
    <p id="pDetails"></p>
    </div>
    <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
    </div>
    </div>
    </div>

    <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" />
    <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print" />



    @section scripts{
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>

    <script>
    $(document).ready(function () {
    var events = ;
    $.ajax({
    type: "GET",
    url: "/conge/getConges",
    success: function (data) {
    $.each(data, function (i, v) {
    events.push({
    title: v.Subject,
    description: v.Description,
    start: moment(v.DateDebut),
    end: v.DateFin != null ? moment(v.DateFin) : null,
    color: v.themecolor,
    allDay: v.IsFullDay
    });
    })

    GenerateCalender(events);
    },
    error: function (error) {
    alert('failed');
    }
    })

    function GenerateCalender(events) {
    $('#calender').fullCalendar('destroy');
    $('#calender').fullCalendar({
    contentHeight: 400,
    defaultDate: new Date(),
    timeFormat: 'h(:mm)a',
    header: {
    left: 'prev,next today',
    center: 'title',
    right: 'month,basicWeek,basicDay,agenda'
    },
    eventLimit: true,
    eventColor: '#378006',
    events: events,
    eventClick: function (calEvent, jsEvent, view) {
    $('#myModal #eventTitle').text(calEvent.title);
    var $description = $('<div/>');
    $description.append($('<p/>').html('<b>Start:</b>' + calEvent.start.format("DD-MMM-YYYY HH:mm a")));
    if (calEvent.end != null) {
    $description.append($('<p/>').html('<b>End:</b>' + calEvent.end.format("DD-MMM-YYYY HH:mm a")));
    }
    $description.append($('<p/>').html('<b>Description:</b>' + calEvent.description));
    $('#myModal #pDetails').empty().html($description);

    $('#myModal').modal();
    }
    })
    }
    })
    </script>
    }


    and the function i'm using to display it :



      public JsonResult getConges()
    {
    using (dbContext dbmodel = new dbContext())
    {
    var events = dbmodel.conges.ToList();
    return new JsonResult { Data = events, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
    }

    }


    I didn't get any errors so i don't know how to solve it . i'm using mysql database .



    so please if you're familiar with this error help me.



    [Updated]










    share|improve this question



























      0












      0








      0


      1






      Hello i was following several tutorials on to implement fullcalendar on my asp.net application but when i launch my application the calendar doesn't load the events .
      here's my index.chtml :



      @{
      ViewBag.Title = "Index";
      }

      <div id="calender"></div>


      <div id="myModal" class="modal fade" role="dialog">
      <div class="modal-dialog">
      <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h4 class="modal-title"><span id="eventTitle"></span></h4>
      </div>
      <div class="modal-body">
      <p id="pDetails"></p>
      </div>
      <div class="modal-footer">
      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
      </div>
      </div>
      </div>

      <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" />
      <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print" />



      @section scripts{
      <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
      <script src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>

      <script>
      $(document).ready(function () {
      var events = ;
      $.ajax({
      type: "GET",
      url: "/conge/getConges",
      success: function (data) {
      $.each(data, function (i, v) {
      events.push({
      title: v.Subject,
      description: v.Description,
      start: moment(v.DateDebut),
      end: v.DateFin != null ? moment(v.DateFin) : null,
      color: v.themecolor,
      allDay: v.IsFullDay
      });
      })

      GenerateCalender(events);
      },
      error: function (error) {
      alert('failed');
      }
      })

      function GenerateCalender(events) {
      $('#calender').fullCalendar('destroy');
      $('#calender').fullCalendar({
      contentHeight: 400,
      defaultDate: new Date(),
      timeFormat: 'h(:mm)a',
      header: {
      left: 'prev,next today',
      center: 'title',
      right: 'month,basicWeek,basicDay,agenda'
      },
      eventLimit: true,
      eventColor: '#378006',
      events: events,
      eventClick: function (calEvent, jsEvent, view) {
      $('#myModal #eventTitle').text(calEvent.title);
      var $description = $('<div/>');
      $description.append($('<p/>').html('<b>Start:</b>' + calEvent.start.format("DD-MMM-YYYY HH:mm a")));
      if (calEvent.end != null) {
      $description.append($('<p/>').html('<b>End:</b>' + calEvent.end.format("DD-MMM-YYYY HH:mm a")));
      }
      $description.append($('<p/>').html('<b>Description:</b>' + calEvent.description));
      $('#myModal #pDetails').empty().html($description);

      $('#myModal').modal();
      }
      })
      }
      })
      </script>
      }


      and the function i'm using to display it :



        public JsonResult getConges()
      {
      using (dbContext dbmodel = new dbContext())
      {
      var events = dbmodel.conges.ToList();
      return new JsonResult { Data = events, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
      }

      }


      I didn't get any errors so i don't know how to solve it . i'm using mysql database .



      so please if you're familiar with this error help me.



      [Updated]










      share|improve this question
















      Hello i was following several tutorials on to implement fullcalendar on my asp.net application but when i launch my application the calendar doesn't load the events .
      here's my index.chtml :



      @{
      ViewBag.Title = "Index";
      }

      <div id="calender"></div>


      <div id="myModal" class="modal fade" role="dialog">
      <div class="modal-dialog">
      <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">&times;</button>
      <h4 class="modal-title"><span id="eventTitle"></span></h4>
      </div>
      <div class="modal-body">
      <p id="pDetails"></p>
      </div>
      <div class="modal-footer">
      <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
      </div>
      </div>
      </div>

      <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet" />
      <link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print" />



      @section scripts{
      <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
      <script src="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js"></script>

      <script>
      $(document).ready(function () {
      var events = ;
      $.ajax({
      type: "GET",
      url: "/conge/getConges",
      success: function (data) {
      $.each(data, function (i, v) {
      events.push({
      title: v.Subject,
      description: v.Description,
      start: moment(v.DateDebut),
      end: v.DateFin != null ? moment(v.DateFin) : null,
      color: v.themecolor,
      allDay: v.IsFullDay
      });
      })

      GenerateCalender(events);
      },
      error: function (error) {
      alert('failed');
      }
      })

      function GenerateCalender(events) {
      $('#calender').fullCalendar('destroy');
      $('#calender').fullCalendar({
      contentHeight: 400,
      defaultDate: new Date(),
      timeFormat: 'h(:mm)a',
      header: {
      left: 'prev,next today',
      center: 'title',
      right: 'month,basicWeek,basicDay,agenda'
      },
      eventLimit: true,
      eventColor: '#378006',
      events: events,
      eventClick: function (calEvent, jsEvent, view) {
      $('#myModal #eventTitle').text(calEvent.title);
      var $description = $('<div/>');
      $description.append($('<p/>').html('<b>Start:</b>' + calEvent.start.format("DD-MMM-YYYY HH:mm a")));
      if (calEvent.end != null) {
      $description.append($('<p/>').html('<b>End:</b>' + calEvent.end.format("DD-MMM-YYYY HH:mm a")));
      }
      $description.append($('<p/>').html('<b>Description:</b>' + calEvent.description));
      $('#myModal #pDetails').empty().html($description);

      $('#myModal').modal();
      }
      })
      }
      })
      </script>
      }


      and the function i'm using to display it :



        public JsonResult getConges()
      {
      using (dbContext dbmodel = new dbContext())
      {
      var events = dbmodel.conges.ToList();
      return new JsonResult { Data = events, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
      }

      }


      I didn't get any errors so i don't know how to solve it . i'm using mysql database .



      so please if you're familiar with this error help me.



      [Updated]







      jquery json asp.net-mvc fullcalendar






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 28 '18 at 9:48







      Nisrine Hafi

















      asked Nov 27 '18 at 20:59









      Nisrine HafiNisrine Hafi

      75




      75
























          1 Answer
          1






          active

          oldest

          votes


















          0














          These lines



          DateDebut: moment(v.DateDebut),
          DateFin: v.DateFin != null ? moment(v.DateFin) : null


          are the problem.



          fullCalendar doesn't recognise the DateDebut and DateFin properties - it only recognises start and end as valid property names for the dates. Instead write



          start: v.DateDebut,
          end: v.DateFin != null ? v.DateFin : null


          You have a similar problem in your calendar setup code, where



          conges: conges


          needs to be



          events: conges


          Those two changes ought to fix your problem. N.B. I have removed the moment() constructors - assuming your date strings are in a valid format that momentJS can recognise without being given a custom format, then fullCalendar will recognise it too, without needing to wrap it in a moment object first.



          See https://fullcalendar.io/docs/event-object for a list of the required and optional property names recognised by fullCalendar for an event.






          share|improve this answer


























          • Thank you for responding in fact i changed itto start and end it’s the same no data loaded

            – Nisrine Hafi
            Nov 28 '18 at 9:25











          • Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

            – ADyson
            Nov 28 '18 at 9:27













          • Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

            – ADyson
            Nov 28 '18 at 9:30











          • oh thanks when i changed it to events worked . i will update it . thank you again

            – Nisrine Hafi
            Nov 28 '18 at 9:44











          • No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

            – ADyson
            Nov 28 '18 at 9:46











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53508057%2fasp-netfullcalendar-does-not-load-events%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          These lines



          DateDebut: moment(v.DateDebut),
          DateFin: v.DateFin != null ? moment(v.DateFin) : null


          are the problem.



          fullCalendar doesn't recognise the DateDebut and DateFin properties - it only recognises start and end as valid property names for the dates. Instead write



          start: v.DateDebut,
          end: v.DateFin != null ? v.DateFin : null


          You have a similar problem in your calendar setup code, where



          conges: conges


          needs to be



          events: conges


          Those two changes ought to fix your problem. N.B. I have removed the moment() constructors - assuming your date strings are in a valid format that momentJS can recognise without being given a custom format, then fullCalendar will recognise it too, without needing to wrap it in a moment object first.



          See https://fullcalendar.io/docs/event-object for a list of the required and optional property names recognised by fullCalendar for an event.






          share|improve this answer


























          • Thank you for responding in fact i changed itto start and end it’s the same no data loaded

            – Nisrine Hafi
            Nov 28 '18 at 9:25











          • Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

            – ADyson
            Nov 28 '18 at 9:27













          • Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

            – ADyson
            Nov 28 '18 at 9:30











          • oh thanks when i changed it to events worked . i will update it . thank you again

            – Nisrine Hafi
            Nov 28 '18 at 9:44











          • No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

            – ADyson
            Nov 28 '18 at 9:46
















          0














          These lines



          DateDebut: moment(v.DateDebut),
          DateFin: v.DateFin != null ? moment(v.DateFin) : null


          are the problem.



          fullCalendar doesn't recognise the DateDebut and DateFin properties - it only recognises start and end as valid property names for the dates. Instead write



          start: v.DateDebut,
          end: v.DateFin != null ? v.DateFin : null


          You have a similar problem in your calendar setup code, where



          conges: conges


          needs to be



          events: conges


          Those two changes ought to fix your problem. N.B. I have removed the moment() constructors - assuming your date strings are in a valid format that momentJS can recognise without being given a custom format, then fullCalendar will recognise it too, without needing to wrap it in a moment object first.



          See https://fullcalendar.io/docs/event-object for a list of the required and optional property names recognised by fullCalendar for an event.






          share|improve this answer


























          • Thank you for responding in fact i changed itto start and end it’s the same no data loaded

            – Nisrine Hafi
            Nov 28 '18 at 9:25











          • Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

            – ADyson
            Nov 28 '18 at 9:27













          • Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

            – ADyson
            Nov 28 '18 at 9:30











          • oh thanks when i changed it to events worked . i will update it . thank you again

            – Nisrine Hafi
            Nov 28 '18 at 9:44











          • No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

            – ADyson
            Nov 28 '18 at 9:46














          0












          0








          0







          These lines



          DateDebut: moment(v.DateDebut),
          DateFin: v.DateFin != null ? moment(v.DateFin) : null


          are the problem.



          fullCalendar doesn't recognise the DateDebut and DateFin properties - it only recognises start and end as valid property names for the dates. Instead write



          start: v.DateDebut,
          end: v.DateFin != null ? v.DateFin : null


          You have a similar problem in your calendar setup code, where



          conges: conges


          needs to be



          events: conges


          Those two changes ought to fix your problem. N.B. I have removed the moment() constructors - assuming your date strings are in a valid format that momentJS can recognise without being given a custom format, then fullCalendar will recognise it too, without needing to wrap it in a moment object first.



          See https://fullcalendar.io/docs/event-object for a list of the required and optional property names recognised by fullCalendar for an event.






          share|improve this answer















          These lines



          DateDebut: moment(v.DateDebut),
          DateFin: v.DateFin != null ? moment(v.DateFin) : null


          are the problem.



          fullCalendar doesn't recognise the DateDebut and DateFin properties - it only recognises start and end as valid property names for the dates. Instead write



          start: v.DateDebut,
          end: v.DateFin != null ? v.DateFin : null


          You have a similar problem in your calendar setup code, where



          conges: conges


          needs to be



          events: conges


          Those two changes ought to fix your problem. N.B. I have removed the moment() constructors - assuming your date strings are in a valid format that momentJS can recognise without being given a custom format, then fullCalendar will recognise it too, without needing to wrap it in a moment object first.



          See https://fullcalendar.io/docs/event-object for a list of the required and optional property names recognised by fullCalendar for an event.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 28 '18 at 9:31

























          answered Nov 28 '18 at 9:21









          ADysonADyson

          24.8k112646




          24.8k112646













          • Thank you for responding in fact i changed itto start and end it’s the same no data loaded

            – Nisrine Hafi
            Nov 28 '18 at 9:25











          • Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

            – ADyson
            Nov 28 '18 at 9:27













          • Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

            – ADyson
            Nov 28 '18 at 9:30











          • oh thanks when i changed it to events worked . i will update it . thank you again

            – Nisrine Hafi
            Nov 28 '18 at 9:44











          • No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

            – ADyson
            Nov 28 '18 at 9:46



















          • Thank you for responding in fact i changed itto start and end it’s the same no data loaded

            – Nisrine Hafi
            Nov 28 '18 at 9:25











          • Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

            – ADyson
            Nov 28 '18 at 9:27













          • Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

            – ADyson
            Nov 28 '18 at 9:30











          • oh thanks when i changed it to events worked . i will update it . thank you again

            – Nisrine Hafi
            Nov 28 '18 at 9:44











          • No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

            – ADyson
            Nov 28 '18 at 9:46

















          Thank you for responding in fact i changed itto start and end it’s the same no data loaded

          – Nisrine Hafi
          Nov 28 '18 at 9:25





          Thank you for responding in fact i changed itto start and end it’s the same no data loaded

          – Nisrine Hafi
          Nov 28 '18 at 9:25













          Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

          – ADyson
          Nov 28 '18 at 9:27







          Ok. Can you please edit the question to show a sample of the JSON data being returned? There's a chance it's an issue with date formats or something like that. Also check your browser's console for any errors.

          – ADyson
          Nov 28 '18 at 9:27















          Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

          – ADyson
          Nov 28 '18 at 9:30





          Oh actually I just noticed another problem: conges: conges should be events: conges in your calendar code. Again, fullCalendar only recognises the "events" property name in the options. Have updated the answer.

          – ADyson
          Nov 28 '18 at 9:30













          oh thanks when i changed it to events worked . i will update it . thank you again

          – Nisrine Hafi
          Nov 28 '18 at 9:44





          oh thanks when i changed it to events worked . i will update it . thank you again

          – Nisrine Hafi
          Nov 28 '18 at 9:44













          No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

          – ADyson
          Nov 28 '18 at 9:46





          No problem. In future remember to double-check the fullCalendar documentation that a) you've used names which are actually mentioned in the documentation and b) you haven't forgotten to translate any words :-)

          – ADyson
          Nov 28 '18 at 9:46




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53508057%2fasp-netfullcalendar-does-not-load-events%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)