1. Since we changed the 2rd parameter called "record" in version 1.2.x of detailExpand event,
you need to find all places in your project where this parameter is in use and retrieve the record info by the getById method.
version 1.1.x code
var grid = $('selector').grid();
grid.on("detailExpand", function (e, $detailWrapper, record) {
if ("something" === record.FieldX) {
//do something
}
});
version 1.2.x code
var grid = $('selector').grid();
grid.on("detailExpand", function (e, $detailWrapper, id) {
var record = grid.getById(id);
if ("something" === record.FieldX) {
//do something
}
});
2. Since we changed the 2rd parameter called "record" in version 1.2.x of detailCollapse event,
you need to find all places in your project where this parameter is in use and retrieve the record info by the getById method.
version 1.1.x code
var grid = $('selector').grid();
grid.on("detailCollapse", function (e, $detailWrapper, record) {
if ("something" === record.FieldX) {
//do something
}
});
version 1.2.x code
var grid = $('selector').grid();
grid.on("detailCollapse", function (e, $detailWrapper, id) {
var record = grid.getById(id);
if ("something" === record.FieldX) {
//do something
}
});