cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Having issues with clicking in a cell in SinglePlanningCalendarMonthView

Ron_Hagan
Product and Topic Expert
Product and Topic Expert
0 Likes
321

I have a SinglePlanningCalendar where I dynamically put buttons in individual days, and it works great.

When I click in an empty cell, all the buttons disappear.  I've tried attaching events cellClick and cellSelect to the calendar to fire a specific function (onCalendarCellClick) but for some reason, that function never fires.

Any ideas and/or suggestions would be greatly appreciated.

Please let me know if any more information is needed.

Thanks in advance!

Ron

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Ron_Hagan
Product and Topic Expert
Product and Topic Expert
0 Likes

Update:  Got it to work by using this:

 $(oCalendarInRender.getDomRef()).on("click", ".sapMSPCMonthDay", (e) => {
                    console.log("Clicked calendar cell:", e.target);
                    this.onCalendarCellClick(e);
     });

Answers (0)