Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10974


I'd like to use OnTimeItem_Hoover at GTP.WEB VB but its not available yet? Please note that this article refers to the GTP.NET
Jump to article- 2007-08-18 10:54:00 - Email plexityHide

Question


I'd like to use OnTimeItem_Hoover at GTP.WEB VB but it's not available yet. can you please tell me if your're working on that?

 

Answer


When allowing for the Ajax movable Gantt_ASP.ClientTimeItems the html is different from when using non-movable time items. So what we needed to do was to find a way for you to handle both the static and the ajax case.

 

For the static case you can use the OnAreaAttributes event on the server side to inject any script reference or attribute you need.

 

But for the Ajax case that is not possible. To solve this we added a property that allows you to inject javascript code to the client side:

 

PlexityHide.GTP.WEB.Gantt_ASP.ClientSideJavaScript_TimeItemInit = "aImgElement.title=aClientTimeItem.UserString;\r\n";

You can add any valid javascript statement (multiple rows) here. Use this to set up MouseOver reference for you client side Hover needs.

We also added the client side UserString on client side time items for you to use to pass Time item unique data.

Initiate the UserString by implementing this new event:

void Gantt_ASP1_OnTimeItemUserStringPrepare(PlexityHide.GTP.WEB.Gantt_ASP aGantt, PlexityHide.GTP.WEB.TimeItemUserStringPrepareArgs e)
{
  e.result=
"This time item starts at "+e.ti.Start.ToLongDateString();
}

 

 

 

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...