onSelectRow: function(id) {
if (id && id !== lastsel<%= count %>) {
$j(gridName).restoreRow(lastsel<%= count %>);
$j(gridName).editRow(id, true);
lastsel<%= count %> = id;
}
}
onSelectRow: function(id) {