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 will be called and if you click on a row, an alert is shown.
Hope this helps.
Regards, Marc
> --
> You received this message because you are subscribed to the Google Groups "Flexigrid for jQuery" group.
> To post to this group, send email to flex...@googlegroups.com.
> To unsubscribe from this group, send email to flexigrid+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/flexigrid?hl=en.
>
>