Hi,
I'm changing the background color of an appointment, and not using you skin/style
everything works great,
but there is a small gap in the upper part of the appointment that doesn't fill the whole cell,
I'm using the following
.RadScheduler .rsAptContent, .RadScheduler .rsAptIn, .RadScheduler .rsAptMid, .RadScheduler .rsAptOut
{
background-image: none !important;
}
It also display differently in IE & FF
http://80.179.90.69/ie.png
http://80.179.90.69/ff.png
Please advise,
Mickey
I'm changing the background color of an appointment, and not using you skin/style
everything works great,
but there is a small gap in the upper part of the appointment that doesn't fill the whole cell,
I'm using the following
.RadScheduler .rsAptContent, .RadScheduler .rsAptIn, .RadScheduler .rsAptMid, .RadScheduler .rsAptOut
{
background-image: none !important;
}
It also display differently in IE & FF
http://80.179.90.69/ie.png
http://80.179.90.69/ff.png
Please advise,
Mickey
6 Answers, 1 is accepted
0
Hello Mickey,
I am not sure how exactly you style the appoitnemnts, but here is a method which you can try and see if it helps for your case:
As for the font-size issue, we will need a live url to be able to determine why this happens.
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am not sure how exactly you style the appoitnemnts, but here is a method which you can try and see if it helps for your case:
| protected void RadScheduler1_AppointmentDataBound1(object sender, SchedulerEventArgs e) |
| { |
| e.Appointment.CssClass = "CustomAppointmentStyle"; |
| } |
| .CustomAppointmentStyle , .CustomAppointmentStyle .rsAptOut, .CustomAppointmentStyle .rsAptMid |
| { |
| background: orange !important; |
| } |
As for the font-size issue, we will need a live url to be able to determine why this happens.
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mickey
Top achievements
Rank 1
answered on 26 Jun 2009, 02:23 PM
Hi,
your setting works greet,
But,
I need to set the background color at runtime depending on the app resources
the user define the desire color at runtime,
How do I set the color at run time?
As for the font size - this is OK - my settings
Also, I'm setting the attribute at the AppointmentCreated and not at the AppointmentDataBound
Does it meter?
Mickey
your setting works greet,
But,
I need to set the background color at runtime depending on the app resources
the user define the desire color at runtime,
How do I set the color at run time?
As for the font size - this is OK - my settings
Also, I'm setting the attribute at the AppointmentCreated and not at the AppointmentDataBound
Does it meter?
Mickey
0
Hi Mickey,
Yes, the resources are available in AppointmentCreated as well, so you can use this event if needed. Here is what I would use - suppose you have a resource type User with two possible values: "Alex" and "Bob". Then you can do the following:
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Yes, the resources are available in AppointmentCreated as well, so you can use this event if needed. Here is what I would use - suppose you have a resource type User with two possible values: "Alex" and "Bob". Then you can do the following:
| protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
| { |
| if( e.Appointment.Resources.GetResourceByType("User") !=null) |
| e.Appointment.CssClass = "CssStyleFor" + e.Appointment.Resources.GetResourceByType("User").Text; |
| } |
| .CssStyleForAlex , .CssStyleForAlex .rsAptOut, .CssStyleForAlex .rsAptMid |
| { |
| background: orange !important; |
| } |
| .CssStyleForBob , .CssStyleForBob .rsAptOut, .CssStyleForBob .rsAptMid |
| { |
| background: green !important; |
| } |
Regards,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mickey
Top achievements
Rank 1
answered on 26 Jun 2009, 06:12 PM
Yes,
I'm aware I can do this,
But the problem is that I let the user choose what ever color that he would like,
(using radColorPicker) So I don't know how to create the CSS upfront,
I tried setting the color on the fly using,
using
e.Appointment.BackColor = <some user selected color value>
with out the CSS approach,
and it worked OK, except of the top part which was not format as expected.
Is this a bug,
or I'm going in a wrong direction....
Mickey
I'm aware I can do this,
But the problem is that I let the user choose what ever color that he would like,
(using radColorPicker) So I don't know how to create the CSS upfront,
I tried setting the color on the fly using,
using
e.Appointment.BackColor = <some user selected color value>
with out the CSS approach,
and it worked OK, except of the top part which was not format as expected.
Is this a bug,
or I'm going in a wrong direction....
Mickey
0
Accepted
Hi Mickey,
We dont get this problem in our loca test. As you also confirmed: "your setting works great" in your post from 6/26/2009 9:23:06 AM. I am not sure what exactly the current problem is. Can you send us a live url or open a suppor ticket and attach a simple working demo of the issue?
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
We dont get this problem in our loca test. As you also confirmed: "your setting works great" in your post from 6/26/2009 9:23:06 AM. I am not sure what exactly the current problem is. Can you send us a live url or open a suppor ticket and attach a simple working demo of the issue?
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mickey
Top achievements
Rank 1
answered on 29 Jun 2009, 01:56 PM
Thanks for your support,
I have decided to use the build in styles,
Although that isn't what I wanted to do, It will do for now
Thanks
Mickey
I have decided to use the build in styles,
Although that isn't what I wanted to do, It will do for now
Thanks
Mickey