Checkbox with colspan error

Hello, I am using the visual builder to successfully build a dyn form and using the colspan to group checkboxes together in a vertical line (the form is a horizontal form) so I am attempting to save space by grouping the checkboxes together. However when I then load the page in the localhost browser window I get an error. If I remove or change the colspan to 1 it loads fine. Here is the code:

{
            colSpan:1,
            width:5,
            name:"3",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            width:5,
            name:"4",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            width:5,
            name:"5",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:1,
            width:5,
            name:"6",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            width:5,
            name:"7",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            width:5,
            name:"8",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:1,
            width:5,
            name:"9",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            width:5,
            name:"10",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:0,
            name:"11",
            _constructor:"CheckboxItem"
        },
        {
            colSpan:1,
            width:5,
            name:"12",
            _constructor:"CheckboxItem"
        },

Another possible way?

Is it possible to create a dropdown with checkboxes within it (I know you can’t in regular html, but wasn’t sure if you could in smart client)

Hi jrmayhew
colSpan 0 is not actually supported - the fact that it works in the visual builder is just a coincidence to do with the way the visual builder applies changes to its content.
Will colSpan:1 give you what you need?

Creating a drop-down with checkboxes in it is possible in SmartClient.
Quickest approaches are to use either checkbox valueIcon images (an example of valueIcon images available here) or use the pickListFields to explicitly include a boolean column in your drop down.
Exactly what’s right for your application will depend on your usage.