I want to combine two fields for the dataTextField property of the Kendo autocomplete.
My datasouce has a FirstName field and a LastName field.
schema: {
data: "d",
model: {
id: "PersonId",
fields: {
PersonId: {
type: "number",
editable: false // this field is not editable
},
FirstName: {
type: "text",
validation: { // validation rules
required: true // the field is required
}
},
LastName: {
type: "text",
validation: { // validation rules
required: true // the field is required
}
}
}
}
}
Is there a way I can configure the autocomplete to display FirstName + LastName?
Maybe I have to do something with the datasource instead, and if that is the case, can someone provide a simple example?
Thank you!