Home Unanswered Active Tags New Question

Possible to show thumbnail for a resource name in the DayPilot Schedule ?

The Demo sample shows "John" in the Vertical axis , based on resource <DayPilot:Resource Name="John" Value="A" />

Is there a way to show a thumbnail or icon instead?

Thanks,Peter

Asked by peter cli 4 years ago.
Replies
Use OnBeforeResHeaderRender and its innerHtml event attribute.
Comment posted by Martin R. 4 years ago.

Does the image need to be a certain size ? Or should I override the img attributes ? This is what I have now :

e.InnerHTML = @" <img src='../Images/0.jpg' />";

Comment posted by peter cli 4 years ago.
The height shouldn't be more than EventHeight (default value is 17 (pixels); that is the minimum row height).

The width shouldn't be more than RowHeaderWidth (default value is 80 (pixels)).

You don't have to include height="" and width="" attributes but I would recommend adding them (it can improve rendering time because the browser will know the image size before actually loading it).
Comment posted by Dan Letecky 4 years ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java