My solenoid is _after_ the RO/DI filter... for my setup, it has to be.
Got my 110vac, 1/4" quick connect solenoid valve from AirWaterIce, no metal in contact with water flow. Works great.
In my setup, output after RO membrane is split, going to a 5g pressure tank that feeds my ice maker and drinking water faucet. The other 't' feeds through the DI cart, and runs to my mixing station and ATO reservoir. The ATO reservoir has the solenoid on it, only enabled for 2 hours, twice a week. From there to a float valve, with a normally dry float switch above that, in case the float valve fails. This way, I use most of the 5g reservoir, and then refill it, rather than starting/stopping the RO/DI every time my ATO unit uses a little water. Running the RO/DI for very short periods of time doesn't produce the best results.