If grain is delivered to a warehouseman by the owner, or by a person whose act in conveying the title to a purchaser in good faith for value would bind the owner, and a negotiable receipt is issued for it, such grain cannot thereafter, while in the possession of the warehouseman, be attached by garnishment or otherwise, or be levied under an execution unless the receipt be first surrendered to the warehouseman, or its negotiation enjoined. The warehouseman shall in no case be compelled to deliver up actual possession of the grain until the receipt is surrendered to him or impounded by the courts.
K.S.A. 34-264