This is a migrated thread and some comments may be shown as answers.

All Day slot not registering correct

4 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Devin
Top achievements
Rank 1
Devin asked on 08 Feb 2016, 10:27 PM
I have a list of tabs that force my scheduler to re-read it's datasource. This forces my resources datasource to update it's filter depending on which tab was selected. If I'm on a tab where the All Day cell has one event, the height of the All Day cell is twice as big which makes sense so I can create another even in that space. When I switch to another tab that filters out that event in the All Day slot, the All Day cell height returns to a normal height of 1 event, but I am unable to select the 7 am timeslot with my mouse. If I double-click the 7am timeslot, an All Day event creation will pop up. If I try to create an event and then cancel, the 7am timeslot will start working correctly again. If I switch to a different view like Month, the 7am slot will work again. It seems like the scheduler is not updating the cell "hitbox" when my scheduler reads from the datasource. Is there a way to fix this without switching views or creating/canceling events?

4 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 10 Feb 2016, 11:15 AM
Hello Devin, 

From the provided information it's not clear for us what is the exact setup that you have - could you please provide runable example where the issue is reproduced? This would help us advice you better how to proceed. 

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Devin
Top achievements
Rank 1
answered on 10 Feb 2016, 04:45 PM
I replicated the issue here: http://dojo.telerik.com/ARuwo

If you select the "Filtered" tab, the All Day event will disappear as intended. If you try to double-click the 7am slot after the event is filtered out, the All Day slot will be selected for the new event.
0
Accepted
Georgi Krustev
Telerik team
answered on 12 Feb 2016, 12:04 PM
Hello Devin,

We will need to force the resize in this case. Thus the widget will be able to render its value properly:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Devin
Top achievements
Rank 1
answered on 12 Feb 2016, 04:50 PM
I had tried the resize() method before posting here but it wasn't working because I didn't wait for my scheduler.read() ajax call to complete so it was resizing before the data was re-bound to the widget. Once I added the resize() to the end of my read.success(), the scheduler resized properly. Thanks Georgi Krustev.
Tags
Scheduler
Asked by
Devin
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Devin
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or