jqGrid dynamic event

Posted by Daveo on Stack Overflow See other posts from Stack Overflow or by Daveo
Published on 2010-03-29T06:55:31Z Indexed on 2010/03/29 7:13 UTC
Read the original article Hit count: 492

Filed under:
|
|

Suppose I have the following (shortened for simplicity):

jQuery("#grid").jqGrid({
...
ondblClickRow: function() {
    // I want to define this function dynamically at run time
}
...
});

How to I bind ondblClickRow event outside of the grid Deceleration. For example in jQuery I would normally do

$('#grid').bind('ondblClickRow', function() { alert('my over written event'); });

© Stack Overflow or respective owner

Related posts about jqgrid

Related posts about jQuery