In radzen editor, it is possible to include not just one line of code but an entire code block in an Execute C# method, for example like this:
In editor it looks like this:
or like this:
In Visual Studio it looks like this:
protected async System.Threading.Tasks.Task DropdownDatagridKundeChange(dynamic args)
{
selectedKunde = getKundesResult.Where(k => k.KDNR1 == args).First();
aagfakt.kndname1 = selectedKunde.NAME1;
aagfakt.kndname2 = selectedKunde.NAME2;
aagfakt.kndname3 = selectedKunde.Name3;
aagfakt.kndname4 = selectedKunde.Name4;
}