Hi,
I need to show only the all day div when I am in day view in the scheduler. So no hours zone. We just need to show a list of all day events.
Is there a way of implementing this?
If not, can it be implemented in the next versions?
PS: I could not find anything useful, so I tried to use a javascript piece of code. I cannot make it work correctly though. The main problem is that the rendered div does not have an ID set up.
Kind regards,
Raluca.
I need to show only the all day div when I am in day view in the scheduler. So no hours zone. We just need to show a list of all day events.
Is there a way of implementing this?
If not, can it be implemented in the next versions?
PS: I could not find anything useful, so I tried to use a javascript piece of code. I cannot make it work correctly though. The main problem is that the rendered div does not have an ID set up.
Kind regards,
Raluca.
8 Answers, 1 is accepted
0
Hello,
You can use CSS to hide the content div. This style tag should do the job:
Sincerely yours,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can use CSS to hide the content div. This style tag should do the job:
| <style type="text/css"> |
| .rsContent |
| { |
| display: none; |
| } |
| </style> |
Sincerely yours,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
raluca
Top achievements
Rank 1
answered on 05 Oct 2007, 01:58 PM
Your solution works perfectly with DayView. But then, when I change to Week or Month view we want to show the days (rendered inside the div with rsContent).
This exactly what I did with JavaScript (setting the style's display property programatically). But I cannot catch all the events while navigating between day, week and month views.
Any other ideas are welcomed.
Kind regards,
Raluca.
This exactly what I did with JavaScript (setting the style's display property programatically). But I cannot catch all the events while navigating between day, week and month views.
Any other ideas are welcomed.
Kind regards,
Raluca.
0
Hi,
You can hide the hours zone only for the Day View through the code-behind of the Page. It's a bit of a 'hack', but should do the job:
Kind regards,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
You can hide the hours zone only for the Day View through the code-behind of the Page. It's a bit of a 'hack', but should do the job:
| protected override void OnPreRenderComplete(EventArgs e) |
| { |
| if (RadScheduler1.SelectedView == SchedulerViewType.DayView) |
| { |
| ((WebControl)RadScheduler1.Controls[0].Controls[2]).Style["display"] = "none"; |
| } |
| base.OnPreRenderComplete(e); |
| } |
Kind regards,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Ravikiran
Top achievements
Rank 1
answered on 04 Apr 2008, 11:43 AM
Hi this method is not working. Givinig an error at Overrides Keyword -->"Sub 'OnPrerenderComplete
cannot be declared 'Overrides' because it does not overrides a Sub in a base class"
Could you also plz tell me how to increase the height of the events in Dayview and week view, it should be wrapped based on the size of the text.
Please tell me how to show all appointments instead of specifying the exact number for the property "MonthVisibleAppointmentsPerDay" .so that cell shoul be wrapped based on the number of events.
Thanks
M Ravikiran
Could you also plz tell me how to increase the height of the events in Dayview and week view, it should be wrapped based on the size of the text.
Please tell me how to show all appointments instead of specifying the exact number for the property "MonthVisibleAppointmentsPerDay" .so that cell shoul be wrapped based on the number of events.
Thanks
M Ravikiran
0
Hi Ravikiran,
I am not sure why you get this error. I tested the solution which Dimitar suggested with both C# and VB.NET and it worked well in both cases. Here is the VB version in case you need it for reference:
In Day and Week view the height of the appointment is dependent on the start and end time. You cannot modify the height based on the length of the appointment's text, because this will mean to change the appontment's time span. This scenario is possible only in Month view and this topic shows how it can be done. There is another kb article which shows how to increase the height of the scheduler's cells. Maybe this is more suitable for this case. If I am missing something, please feel free to let me know.
As for the last question, luckily, there is a KB which shows how this can be done: How to set the appointment's height to accomodate the entire subject's text in Month View
Don't hesitate to contact us if you have any other questions.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am not sure why you get this error. I tested the solution which Dimitar suggested with both C# and VB.NET and it worked well in both cases. Here is the VB version in case you need it for reference:
| Protected Overloads Overrides Sub OnPreRenderComplete(ByVal e As EventArgs) |
| If RadScheduler1.SelectedView = SchedulerViewType.DayView Then |
| CType(RadScheduler1.Controls(0).Controls(2), WebControl).Style("display") = "none" |
| End If |
| MyBase.OnPreRenderComplete(e) |
| End Sub |
In Day and Week view the height of the appointment is dependent on the start and end time. You cannot modify the height based on the length of the appointment's text, because this will mean to change the appontment's time span. This scenario is possible only in Month view and this topic shows how it can be done. There is another kb article which shows how to increase the height of the scheduler's cells. Maybe this is more suitable for this case. If I am missing something, please feel free to let me know.
As for the last question, luckily, there is a KB which shows how this can be done: How to set the appointment's height to accomodate the entire subject's text in Month View
Don't hesitate to contact us if you have any other questions.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Ravikiran
Top achievements
Rank 1
answered on 07 Apr 2008, 04:52 PM
Thanks a lot. I got solution with by your post.
0
Ravikiran
Top achievements
Rank 1
answered on 07 Apr 2008, 05:03 PM
Dear Telerik team,
Actually i have 5 events for the date 01-April and 25 events on 12th April. Currently it is expanding based on the number specied for "MonthVisibleAppointmentsPerDay" property. If i specify this property to 25 for the sake of 12th April, other cells are also getting expanded to accomidate 25 events though i dont have 25 events for those cells.
Kindly tell me how the cell to be expanded based on the number of events.
Thanks in Advance
M Ravikiran
Actually i have 5 events for the date 01-April and 25 events on 12th April. Currently it is expanding based on the number specied for "MonthVisibleAppointmentsPerDay" property. If i specify this property to 25 for the sake of 12th April, other cells are also getting expanded to accomidate 25 events though i dont have 25 events for those cells.
Kindly tell me how the cell to be expanded based on the number of events.
Thanks in Advance
M Ravikiran
0
Hi Ravikiran,
Thanks for your question. I am not sure if this is possible with the current version of RadScheduler. However, we will consider this scenario for future development. If we find a solution with the current version, we will let you know.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks for your question. I am not sure if this is possible with the current version of RadScheduler. However, we will consider this scenario for future development. If we find a solution with the current version, we will let you know.
Greetings,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center