Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 667
  • Last Modified:

Need event BEFORE jqGrid grabs mouseover

I use Microsoft's MVC unobtrusive javascript validation to handle validation with the jqGrid I use.

When the user mouses over the validation column, jqGrid displays the error message for that row. But I need to dril into that "tooltip" div and remove duplicate messages before jqgrid grabs the mouseover event and displays the message box.

How can I do that?

I could make bind my own mouseover event, but that would mean I need to know how to trigger the code being called currently (by unobtrusive javascript validation) after a mouseover event.

I do not know where that is.
0
newbieweb
Asked:
newbieweb
1 Solution
 
MrunalCommented:
Hi,

After page load, for validation controls, mouseover and mouseleave events are automatically attached.

So what you have to do is:
unbind those events and aging bind your customized event on which you can write / call your own code.

see:

For unbind:

http://stackoverflow.com/questions/805133/how-do-i-unbind-hover-in-jquery

http://stackoverflow.com/questions/2727570/jquery-unbindhover-does-not-work

for adding event:

http://api.jquery.com/mouseover/

http://api.jquery.com/hover/

http://www.w3schools.com/jquery/event_mouseover.asp

Hope this helps you.
0
 
newbiewebSr. Software EngineerAuthor Commented:
Thanks!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now