Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10614


Is it possible to use a TimeItemStyle of User in GTP.WEB? Please note that this article refers to the GTP.NET
Jump to article- 2007-08-18 10:27:00 - Email plexityHide

Question

Is it possible to use a TimeItemStyle of 'User' in GTP.WEB? If so, how do we specify how to draw the item?

Answer

Yes. The Gantt_ASP uses the windows forms gantt for rendering. So implement the event found here:

Gantt_ASP.Gantt.OnTimeItem_UserDraw

This event can be implemented like this in c#:

this.Gantt_ASP.Gantt.OnTimeItem_UserDraw += new PlexityHide.GTP.TimeItemEvent(this.impl_OnTimeItem_UserDraw);

In VB.NET you use the AddHandler call to assign a delegate in runtime, like this:

Add a method:

Private Sub impl_OnTimeItem_UserDraw(ByVal aGantt As PlexityHide.GTP.Gantt, ByVal e As PlexityHide.GTP.TimeItemEventArgs)

Then you bind to this method like this:

AddHandler this.Gantt_ASP.Gantt.OnTimeItem_UserDraw, AddressOf impl_OnTimeItem_UserDraw

IMPORTANT: TimeItem.TimeItemLayout.TimeItemStyle must be set to User. Otherwise the user draw event is not called...

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...