This does nothing in tw2.
change references of d to self, update template.
Update jqgrid template too, just in case.