1 Answer, 1 is accepted
Hello, Pankaj,
I already answered the question in the support ticket you opened on the same topic, but I will place my reply here as well for other users to see.
You can try the slotTemplate option. Here is a small example for reference.
Regards,
Martin
Progress Telerik
Hi Martin
Thanks for your quick response. I have applied it its working nice but problem is that its apply to all empty slots as well as appointment booked slots and another problem is that its not working for month view.
Regards
Hello, Pankaj,
Indeed the slotTemplate content will apply for each slot and it will not apply for the slots in the month view as the latter is not supported by the slotTemplate. A possible approach would be to use additional custom logic to check if the current slot is empty, based on the event date, and use the jQuery API to manually update the td element.
Hi
The user should just see 1 instance for the entire work day that says 'available to work'.
How Can I Achieve this in slotTemplate.
Regards
Pankaj
Hello, Pankaj,
If I correctly understand the requirement, 1 instance for the entire work day means the month view again. The only possible approach would be to get all the cells in the month view, and compare with the visible events to check if a slot is empty. If it is, you can use jQuery text method to change the cell content.
Hello Martin
please give me some example to Achieve this functionality using jQuery text method.
Regards
Pankaj