HI | |
Here i am facing problem with round corner for appointment. | |
I want to customizes appointment with roundcorner with dynamic color. | |
i want to apply color when the create an appointment. | |
I tried with existing styles of radschedular but dynamic color not applying. | |
and tried with customize rounded corners. its working for an aapointment but while dragging , its not working. | |
<AppointmentTemplate> | |
<asp:PlaceHolder ID="PlaceHolder_AppointmentCell" runat="server"></asp:PlaceHolder> | |
</AppointmentTemplate> | |
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) | |
{ | |
if (e.Appointment.Visible) | |
{ | |
if (!string.IsNullOrEmpty(e.Appointment.Attributes["szColor"])) | |
{ | |
_strBuilder = new StringBuilder(); | |
_strBuilder.Append("<b class='b1f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b2f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>"); | |
_strBuilder.Append("<b class='b3f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b4f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>"); | |
_strBuilder.Append("<div class='contentf' style='height:33px;background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'>"); | |
_strBuilder.Append("<div class='rsWrap' style='z-index: 14;'><div>"); | |
_strBuilder.Append(e.Appointment.Subject); | |
if (Convert.ToBoolean(e.Appointment.Attributes["bConfirmed"])) | |
{ | |
_strBuilder.Append("<div style='height:10px;width:10px;background-color:Green'> </div>"); | |
} | |
else | |
{ | |
_strBuilder.Append("<div style='height:10px;width:10px;background-color:Red'> </div>"); | |
} | |
_strBuilder.Append("<div class='rsAptResize' style='z-index: 80;background:" + e.Appointment.Attributes["szColor"].ToString() + ";'></div>"); | |
_strBuilder.Append("</div></div></div>"); | |
_strBuilder.Append("<b class='b4f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b3f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>"); | |
_strBuilder.Append("<b class='b2f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b><b class='b1f' style='background-color:" + e.Appointment.Attributes["szColor"].ToString() + "'></b>"); | |
} | |
PlaceHolder appointmentCell = (PlaceHolder)e.Container.FindControl("PlaceHolder_AppointmentCell"); | |
appointmentCell.Controls.Add(new LiteralControl(_strBuilder.ToString())); | |
} | |
} | |
if any one know give me reply. | |
Thx |