search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to customize resource column value programmatically

Asked by Naush
10 years ago.


In scheduler control, I have one resource column as shown below.

<DayPilot:Resource Name="Room-A" Value="101">
<DayPilot:ResourceColumn InnerHTML="Room # 12123" />

<DayPilot:Resource Name="Room-B" Value="102">
<DayPilot:ResourceColumn InnerHTML="Room # 3455" />

Can I customize this column value from BeforeResHeaderRender event? In this event, e.InnerHTML always returns the name of resource, not the column value. How can I set/get the Room# column value here?


Answer posted by Dan Letecky [DayPilot]
10 years ago.

You can access the Resource columns directly using Resource.Column collection:

DayPilotScheduler1.Resources[0].Columns[0].InnerHTML = "Room #12123";
Comment posted by Laura Arana
9 years ago.


I have a similar problem, then I tried Dan's solution, but it seems that there is a syntax error or maybe an index problem... I had to use () insted [] to compile correctly in VB. Now it doesn't compile because "System.ArgumentOutOfRangeException was unhandled by user code".

Any further ideas?

Thanks a lot!

Best regards,


This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.