setting the detailinit function causes grids without details to be formatted as though they did
check if there is detail in the name of the template being set, if so set a flag to attach
the handler only if a detail template has been added