Hi Georgi.
Oh thanks for the reply, i have a new problem that i can't find the exact solution from any documents of Telerik Demos.
How to display the item name instead of the id ( number type ) on the grid that was defined in the schema model ?
Like i have a Model like this :
schema: {
model: {
id: "Appointment_ID",
fields: {
Appointment_ID: { type: 'number', editable: false },
Status: { editable: true ,defaultValue: { id: 1, text: "Open"}},
Customer_ID{ type: 'number', editable: true },
Customer_Type { type: 'number', editable: true },
}
}
Status is a drop down list which looks like this :
function customStatusEditor(container, options) {
$('<input required name="' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
dataTextField: "text",
dataValueField: "id",
dataSource:{
data: [ {text:"Open", id:1},
{text:"Close",id:0}]
}
})
}
And i have Customer model which include Customer_ID as Number, Customer_Name as String and Customer_Type as Number; the Customer_Type is pointed to another model named Defined_Value which include Value_ID as number and Value_Name as String.
I want to display to the appointment grid the text of the Status but the grid displays the id number, i also want to display the Value_Name to the Customer_Type instead of the ID number, how can i do that ?