Zeus_developer
Top achievements
Rank 1
Zeus_developer
asked on 16 Jan 2012, 11:41 PM
Hi,
Please, I need a little help...
how could change the div background-color and include a Photo in a image tag?
Please see the code below
Thanks
Please, I need a little help...
how could change the div background-color and include a Photo in a image tag?
Please see the code below
<AppointmentTemplate>
<
div
style='background-color: <%# Eval("BackgroundColor")%>); height: 200px'>
<
img
src='../uploads/avatars/<%# Eval("Photo") %>' style="height: 28px;float: left" alt='' />
<%# Eval("Subject")%>
</
div
>
</AppointmentTemplate>
Thanks
4 Answers, 1 is accepted
0
0
Hello,
Also, the following online demo might be helpful - http://demos.telerik.com/aspnet-ajax/scheduler/examples/customizeappointment/defaultcs.aspx.
All the best,
Peter
the Telerik team
Also, the following online demo might be helpful - http://demos.telerik.com/aspnet-ajax/scheduler/examples/customizeappointment/defaultcs.aspx.
All the best,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Zeus_developer
Top achievements
Rank 1
answered on 17 Jan 2012, 04:21 PM
Hi,
thanks for your help, I solved this way:
1.- I added custom attributes named Progress, Photo
For change the color of the Appoinment:
For assign the photo of the user:
I hope this solution can help someone.
thanks for your help, I solved this way:
1.- I added custom attributes named Progress, Photo
For change the color of the Appoinment:
Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As SchedulerEventArgs)
If e.Appointment.Attributes("Progress") = 100 Then
e.Appointment.BackColor = System.Drawing.Color.PaleGreen
Else
e.Appointment.BackColor = System.Drawing.Color.PaleVioletRed
End If
End Sub
For assign the photo of the user:
<
img
src='../uploads/avatars/<%# Eval("Photo")%>' style="height: 28px;float: left; margin: 0px 3px 0px 0px" alt='' />
I hope this solution can help someone.
0
Hi Segundo,
Thank you for sharing your solution in the forum.
Regards,
Peter
the Telerik team
Thank you for sharing your solution in the forum.
Regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now