I found the problem. With masterpages you should use resolveclienturl ie.
This fixed my problem, I had a function call for OnRowDblClick which was unable to find the function using the
normal src path for js includes, once updated with ResolveClientUrl, all worked fine. Also may need
to put the scripts inside a RadCodeBlock