Courts of record within their respective jurisdictions shall have power to declare the rights, status, and other legal relations whether or not further relief is, or could be sought. No action or proceeding shall be dismissed or stayed for the sole reason that only declaratory relief has been sought. The declaratory may be either affirmative or negative in nature; and such declarations shall have the force and effect of a final judgment.
K.S.A. 60-1701