Hey Developer,
Your data grid is fantastic, This is just to inform you that I did some
modification on grid.js
// manual code replacement
if(opts.type && opts.type == "manual_code") {
var $thisTh = $grid.getHeaderRow().find("th[col="+col+"]");
cell = $thisTh.attr("code").replace(/{value}/g,cell);
}
So something like this in HTML is possible:
<th col="id" code='<a href="?q=pages/create&id={value}">Edit</a> | <a
href="?q=pages/create&action=delete&id={value}">Delete</a>' type="manual_code"
width="150">Action</th>
See the attach screenshot.
Hope you will include something similar in next release.
Ideally one should be able to access all the column value with {col_name} in
the HTML code.
Thanks
Kaushal
Original issue reported on code.google.com by kaushal....@gmail.com on 1 Jan 2012 at 8:36
Original issue reported on code.google.com by
kaushal....@gmail.com
on 1 Jan 2012 at 8:36Attachments: