11150 : if I want to add attributes like mouseover for the time times how do I do that?

Question

< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 

if I want to add attributes like mouseover for the time times how do I do that? Lets say for a button if I want to add a mouse over event in vb.net we can add like this

 

Button1.attributtes.add(“mouseover”,”mouseover()”)

 

I tried use ClientSideJavaScript_TimeItemInit event.

 

Is there any function avilable in plexityhide which i can add mouseover evenet for timeitem.

 

Answer

 

Sure, Go like this:

Gantt_ASP

.ClientSideJavaScript_TimeItemInit = “aImgElement.onmouseover=(function(event){alert(‘hello’);});\r\n”;

 

10974 : I’d like to use OnTimeItem_Hoover at GTP.WEB VB but its not available yet?

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();
}