Can you explain more clearly please.
Do you have the design dialog for the component you want to disable?
Yes i have the design dialog for the component. In design mode, I want to hide the editbar of that component for few pages. Is there any way to access the editbar of that component? I have tried using CQ.WCM.getEditable() method to get that component. But no luck in disabling the editbar.