Break buttonset into multiple lines

Break buttonset into multiple lines

Hi, I'm using the buttonset as radio buttons, and i'm loading them dynamically for each entry in the DB.
So I don't know how much buttons i could have... I need to break them into multiple lines. 
Is there a simple way to do it without loosing the border radius?   


Thanks