Items.grid.gutter
configurationDefines the width of the gutters between the columns / rows.
items.grid.gutter
Number|String|Object<form id="myForm"></form>
<script>
$(document).ready(function () {
$("#myForm").kendoForm({
formData: {
FirstName: "John",
LastName: "Doe",
Email: "john.doe@email.com"
},
items: [{
type: "group",
label: "Personal Information",
layout: "grid",
grid: {
cols: 2,
gutter: 20
},
items: [{
field: "FirstName",
label: "First Name:",
validation: { required: true }
}, {
field: "LastName",
label: "Last Name:",
validation: { required: true }
}, {
field: "Email",
label: "Email:",
validation: { required: true, email: true }
}]
}]
});
});
</script>
items.grid.gutter.cols
String|Number|ArrayDefines the width of the gutters between the columns.
<form id="myForm"></form>
<script>
$(document).ready(function () {
$("#myForm").kendoForm({
formData: {
FirstName: "John",
LastName: "Doe",
Email: "john.doe@email.com"
},
layout: "grid",
items: [
{
type: "group",
label: "Personal Information",
layout: "grid",
grid: {
gutter: {
cols: [{
maxWidth: 600,
value: 2
},
{
minWidth: 601,
maxWidth: 800,
value: 4
},
{
minWidth: 801,
maxWidth: 2800,
value: 6
}],
rows: 3
}
},
items: [
{
field: "FirstName",
label: "First Name:",
validation: { required: true }
},
{
field: "LastName",
label: "Last Name:",
validation: { required: true }
},
{
field: "Email",
label: "Email",
validation: {
required: true,
email: true
}
}
]
},
],
});
});
</script>
items.grid.gutter.rows
String|Number|ArrayDefines the width of the gutters between the rows.
<form id="myForm"></form>
<script>
$(document).ready(function () {
$("#myForm").kendoForm({
formData: {
FirstName: "John",
LastName: "Doe",
Email: "john.doe@email.com"
},
layout: "grid",
items: [
{
type: "group",
label: "Personal Information",
layout: "grid",
grid: {
gutter: {
rows: [{
maxWidth: 600,
value: 2
},
{
minWidth: 601,
maxWidth: 800,
value: 4
},
{
minWidth: 801,
maxWidth: 2800,
value: 6
}],
cols: 3
}
},
items: [
{
field: "FirstName",
label: "First Name:",
validation: { required: true }
},
{
field: "LastName",
label: "Last Name:",
validation: { required: true }
},
{
field: "Email",
label: "Email",
validation: {
required: true,
email: true
}
}
]
},
],
});
});
</script>
Related Members
- items.grid.gutter.cols - Defines the width of the gutters between the columns.
- items.grid.gutter.rows - Defines the width of the gutters between the rows.