Sunday, March 11, 2012

Apply HoverMenuExtender to Custom Control

This post might be some help, the last post especially

http://forums.asp.net/p/1051701/1498029.aspx#1498029

and more resources here

http://ajax.asp.net/docs/tutorials/CreatingCustomClientControlsTutorial.aspx


I have been able to use custom controls just fine with the update panel using the Event property (throwing a custom event), but with the hovermenuextender you can't specify an event, just the target control ID.


ive never really worked with this control. But maybe you can put a hiddenfield in your custom control and tie you hovermenuextender to it. Then use the events you want to change the client state.


Askeyboardcowboy mentioned, it's necessary that your custom control will render a dom element on the page. Then the extender will attach a onmouseover event handler to it ( Actually, there are several other event handlers too ).

No comments:

Post a Comment