我收到了来自
Marc Borgers
从
Flexigrid for jQuery
在的colModel参数中
具有名称进程的函数。在那里面
函数可以挂接函数
单击行时调用。
我知道这听起来很难。一个例子
会说得更清楚。这里是:
function procMe(celDiv,id) {
$(celDiv).click(
function () {alert(this.innerHTML + " " + id); }
);
};
function postFlexigrid()
{
$("#flex1").flexigrid
(
{
url: 'yourURL',
dataType: 'json',
colModel : [
{display: 'Name', name : 'xxx', width : 200, sortable : false,
align: 'left', process: procMe}
],
usepager: false,
singleSelect: true,
title: 'x',
useRp: false,
showTableToggleBtn: true,
height: 150
}
);
}
$(document).ready(function() {
postFlexigrid();
});
procMe
一行显示一个警报。希望
这有帮助。
你好,马克