[eluser]Unknown[/eluser]
[quote author="Charles Bandes" date="1209511329"]Is it possible to make the rows clickable so that I can attach an action to the row? (Ferinstance, click a name, run an ajax call to bring up data in another div)[/quote]
Yes you can, see below:
1. Add this variable to the line 19 p = $.extend({ ondbclick: null,
2. Add .dblclick event as shown below
Code:
//line 724
$('tbody tr',g.bDiv).each
(
function ()
{
$(this)
.click(
function (e)
{
var obj = (e.target || e.srcElement);
if (obj.href || obj.type) return true;
$(this).toggleClass('trSelected');
if (p.singleSelect) $(this).siblings().removeClass('trSelected');
}
)
//below .click add this line
.dblclick(
function (e) {
if(typeof p.ondbclick == 'function'){
p.ondbclick($(this).attr('id').substr(3));
}
})
3. In flexigrid configuration add the name of you method to ondbclick