Glad to see ColdFusion is still alive... This may help you.
The code below may be crude, since I was just getting started on using slickgrid a month or so ago...
Using the rowselection method, I loop thru the "names" in the row to get each value if needed or JUST the "Id" column.
You could just call it with eval("
row.id") instead of looping through.
I use this click method to trigger getting a second or third child grid AJAX request based on that ID value.
Hope the code below works well enough for you.
---
I have changed my next approach to use the cell selection method for editing.
I am now working on setting up input selectors using lookups, (phone, zip, date/time & numeric) formatters, and input masks (meiomask.js) for different types of inputs for editable grid elements.
This is really awesome because the entire grid will use nearly every possible editable feature one could think of.
Cheers,
Steve Fazekas
---
Since I have multiple grids, I have created #grid[id] for each one...
grid.onClick.subscribe(function(e, args){ //args=row,cell,grid
var obj = grid.getCellFromEvent(e); /*for (var name in obj) {if (obj.hasOwnProperty(name)) {alert(name)}}*/
var row=dataView.getItem(obj.row)
for (var name in row) {
if (row.hasOwnProperty(name)) {
if (name=='Id') {
cellVal=eval("row."+name);
}
}
}
var fxn = "updateFields('"+grid.partid+"','"+cellVal+"')";
//alert("Position: " + obj.cell + ":" + obj.row + ", value: " + cellVal + " partID: " +grid.partid)
log(fxn);
eval(fxn);
});