How to keep 4G on while on WI-FI
As of until Marshmallow, stock Android does not support connecting to both WLAN and Data network simultaneously.

You may keep them both turned on, but the OS will then choose to connect to WLAN or Data depending on Internet access and network quality.

Reference: Personal experience only.