When an application is made to the court or referee to postpone a trial, the payment of the expenses occasioned by the postponement may be imposed, in the discretion of the court or referee, as a condition of granting the same.
Ca. Civ. Proc. Code § 1024