In all proceedings for dissolution or legal separation, after the commencement of the proceeding or at any time after completion of the proceedings, and continuing during the minority of the child, the court may make an order granting visitation rights to grandparents under section 257C.08, subdivision 2.