When it appears by a verified pleading or affidavit that a party is entitled to the relief demanded, and such relief or any part thereof consists in restraining the commission or continuance of some act, the commission or continuance of which during the litigation would produce injury to a party; or when during the litigation it appears that a party is doing or threatens or is about to do, or is procuring or suffering to be done, some act in violation of a party's rights respecting the subject of the action, or tending to render the judgment ineffectual, an order may be granted to restrain such act.
K.S.A. 60-902