Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1763
Add double-click handler to webCombo
posted

Hi all.

I'm trying to get the webCombo to fire an event when it's 'editable' area is double-clicked. So far I've tried with

webCombo.Attributes.Add("ondblclick", "DblClickEvent()");

but the event is not firing. The only restriction I have for this is to set this attribute in runtime since the webCombo itself is being dynamically created.

Any thoughts will be appreciated.

  • 45049
    posted

    Connecting to client-side events for NetAdvantage for .NET - ASP.NET controls isn't done through adding attributes in this fashion.  Instead, you'd normally set a property off of a "ClientSideEvents" property, pointing it to the name of the JavaScript function you'd like to run when the event is raised.

    That said, WebCombo doesn't have a client-side double-click event defined in current versions.

    I suspect there may be a way around this, but I don't know how it would be done.