Something easy to check as well: ensure that the client detail template has this method specified:
.ToClientTemplate()
Otherwise you'll get the invalid template error. It would certainly be helpful if Telerik provided better, specific error messages indicating the source of such problems.