FullCalendar2 get Resource Id on dayClick Event.

FullCalendar2 get Resource Id on dayClick Event.

  

Hi ,

I trying to get ResourceID when dayClick event trigger.

but resource id showing empty string.

as showing in screenshot

can anyone help.



Regards

Ali Hassan

Hello Ali,


The DateTime on the calendar that you click, is represented on the range, you can always get from there and process the date from there.


Hope it helps.

Hugo Duarte wrote:

Hello Ali,


The DateTime on the calendar that you click, is represented on the range, you can always get from there and process the date from there.


Hope it helps.


Hi Hugo,

I can get the date from the event but in timeline view I am not  getting the resource id when click on the any date to create event.
please have a  look at screen shot.

I need to get Resource Id placed on left side when I click to any empty date.
hope you'll understand.

I've attached screenshot also.


Regards

Ali

Solution

Finally got the solution need to pass the ResouceObj Object into the dayClick event.
like this.

https://fullcalendar.io/docs/dayClick


Thanks to me.

Solution