When attempting to use the locking grid view in a user control, I get the following javascript errors:

TypeError: this.cm.getTotalLockedWidth is not a function

and

cm.isLocked is not a function.

It appears as if the extension is not being set properly. Any ideas?