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

Leftpad issues

1 Answer 11 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jeff Nafe
Top achievements
Rank 1
Jeff Nafe asked on 19 Sep 2008, 12:27 PM
We have experienced what appears to be a bug with the "leftpad" attribute of an appointment.

In our situation, we have a weekly view in which every "block" of the calendar represents 12 hours. So, if an appointment starts at 8am for example, we pad it 66%, so it appears 2/3 of the way between 12am and noon. For appointments that begin at 12, or are all day, we leave the leftpad attribute alone, which leads to it being set to NULL and the appointment is properly not padded at all.

The problem occurs only in the following cases:
* The current week has an all day appointment for Monday (so not padded)
* Navigate to previous week
* The Monday of the previous week has an appointment starting somewhere in the AM (and padded accordingly)
* Navigate back to the current week
* Now, the all day Monday appointment is padded equivalent to the padding of the previous Monday's appointment instead of appearing to begin at 12.
* If the page is refreshed, then the all day appointment returns to begin at 12

To get around this, I have specified a leftpad value of "0%" for these all day appointments. But, this is only necessary in those cases listed above so it appears to be a bug within the Schedule control.

Unfortunately I don't have a sample project at this time that represents this.

I can provide more detail (screenshots, etc) if necessary.

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 22 Sep 2008, 04:06 PM
Hello Jeff Nafe,

Thank you for the detailed description. I am not really sure how the padding value is persisted between the post-backs. It might get stored in the viewstate, but this is possible only If you are setting it on the server-side. This can be ruled out easily by disabling the ViewState and giving it a try. Can you describe, in short, how is the padding value set in your code, so we can try to reproduce it here?

Regards,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Jeff Nafe
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or