Retrieving Select object in PreEdit event

Retrieving Select object in PreEdit event

charlespuacharlespua 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.

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Do you mean the server-side PreEdit event, or the client-side preEdit? I'm going to need a little more context please.

    Thanks,
    Allan

This discussion has been closed.