[FullCalendar 2] Undefined value

[FullCalendar 2] Undefined value

  
Forge Component
(19)
Published on 2016-03-23 by Grazina
19 votes
Published on 2016-03-23 by Grazina

Hello, I'm getting an Undefined text that I not able to find the source. The image bellow shows the problem


Is there any workaround for this problem?


Best regards,

Vitor Mexia

Hi Vitor,

As your not passing Event Title value, so you might be getting "undefined" event title.

Please check on FullCalendar JS script, where event is being added/created.

Thanks & Regards,

Swaroop Mutalik

Solution

Hi Vitor, 

You may need to set the description explicitly as well, as the renderer function for this implementation includes a description for the events as well.

Set it to a blank string, and it should work.

Kind Regards,

João Grazina


Solution

Oh, indeed I did not set a description since I only wanted to show the bars with the id (no need for more info). I will try to set it to ""(empty) as you suggested, I'll leave some feedback as soon as I try it.

Thanks,

VM

Grazina wrote:

Hi Vitor, 

You may need to set the description explicitly as well, as the renderer function for this implementation includes a description for the events as well.

Set it to a blank string, and it should work.

Kind Regards,

João Grazina




Grazina wrote:

Hi Vitor, 

You may need to set the description explicitly as well, as the renderer function for this implementation includes a description for the events as well.

Set it to a blank string, and it should work.

Kind Regards,

João Grazina


Hi Grazina,

I am having this problem also. But I am defining the title with the 'title:' property. By the way, the FullCalendarSample define the event title of resources, and below the title we can see 'undefined'. How can I solve this?

Thanks,

Roberto


Roberto Campos wrote:

Grazina wrote:

Hi Vitor, 

You may need to set the description explicitly as well, as the renderer function for this implementation includes a description for the events as well.

Set it to a blank string, and it should work.

Kind Regards,

João Grazina


Hi Grazina,

I am having this problem also. But I am defining the title with the 'title:' property. By the way, the FullCalendarSample define the event title of resources, and below the title we can see 'undefined'. How can I solve this?

Thanks,

Roberto


Hi Roberto,

The undefined is usually caused by the empty Description property of the Event. In my case, it would continue displaying "undefined" altough I have set empty string, NullText() etc. for the Description. I solved it by simply hiding the Decription row of the Event with CSS:

SyntaxEditor Code Snippet

.fc-event-desc {
    display: none;
}

Hope this helps.