At which stage of the page lifecycle you create the dock objects programmatically? Furthermore, do you add the dock objects to the grid rows or outside of the grid instance? Any further details describing your complete configuration schema can help us trace the cause of the issue with the ItemCommand event and resolve it accordingly.
I will also appreciate if you paste the problematic page source in this forum post for further reference.
the Telerik team