I've been trying to solve this with functions and the like, but don't seem to be able to find an answer.
Is there anyway I can pass the type field value in the datasource for the foreign key column?
This will allow me to populate the tenantId list based on the type of Row.
Is there anyway I can pass the type field value in the datasource for the foreign key column?
This will allow me to populate the tenantId list based on the type of Row.
toolbar: ["create"],
columns: [
{ field: "id", title: "Id", hidden: true },
{ field: "type", title: "type", hidden: true },
{
field: "tenantId", filterable: { multi: true, search: true} ,width: "200px", dataTextField: "name", dataValueField: "id", dataSource: {
type: "json",
transport: {
read: {
url: '@Url.Action("GetSyncingTennantsJsn", "dB")',
data: { type: ##I want to pass 'type' value for this row## }
}
}
}
},
{ field: "folder", title: "Folder" },
Many thanks!
Rob