There is a Property for that (@Mark_Johnson was faster ):
@joakimsandgren , if you eventually have the situation where some grace notes are needed before the barline, and some, after the barline in the same piece at the same barline [thank you @Janus ], see this post: