How can I set external display as primary and turn off internal display without connected MagSafe power cable? When I connected MagSafe power cable to Mac and close lid, secondary display become a primary and dock migrate to it. But when I disconnected MagSafe power cable - the primary and secondary monitors both are turn off.

How can I set external display as primary and turn off internal display without connected MagSafe power cable? 

I has Mac OS X 10.9.3
Unfortunately, according to the Apple support website, this is intended behavior. MacBooks do not support video output to external displays when running on battery power - you'll need to plug in the MagSafe cable.