Pinning extension

I'm implementing the grind in a large angular project. And i need a feature "PinnedLocked" witch should block the column in the state of pinned (left or right). Is there any way of locking the pinned property of a column ?.
Or could you give me an advice how should i extend the functionality of the ui-grid?
Thank you so much.