Retrieving Select object in PreEdit event
Retrieving Select object in PreEdit event
charlespua
Posts: 1Questions: 1Answers: 0
Hi, I have a select field in my editor form and passing an object to it. Is there a way to retrieve this object in the "PreEdit" event? Now I am getting just the id, I want to have both the id and name.
Table
{
"data": "roleType",
"render": function (data, type, row) {
return row.roleType.name;
}
},
Editor
{
label: "Role:",
name: "roleType.id",
type: "select",
optionsPair: {
label: 'name',
value: 'id'
}
Thank you.
This discussion has been closed.
Answers
Do you mean the server-side
PreEdit
event, or the client-sidepreEdit
? I'm going to need a little more context please.Thanks,
Allan