All Day slot not registering correct

5 posts, 1 answers
  1. Devin
    Devin avatar
    8 posts
    Member since:
    Dec 2015

    Posted 08 Feb Link to this post

    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?
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 10 Feb Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Devin
    Devin avatar
    8 posts
    Member since:
    Dec 2015

    Posted 10 Feb Link to this post

    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.
  5. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 12 Feb Link to this post

    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!
     
  6. Devin
    Devin avatar
    8 posts
    Member since:
    Dec 2015

    Posted 12 Feb Link to this post

    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.
Back to Top
Kendo UI is VS 2017 Ready