DropDownDatagrid textproperty on multiple selection


#1

how can I view the chained values ​​chosen by a dropdown with "multiple" properties enabled?


#2

You can bind the DropDown value to an array for example and observe this array when needed:





#3

Perfect, work, but how post the selected values, i need to create a viemodel and use custom method? now i use a crud autogenerated method


#4

You can create a custom method like this:

[HttpPost]
public IActionResult Test(IEnumerable<string> selectedCustomers)
{
    return Ok(selectedCustomers);
}

and invoke this method on Change event of the DropDown:

The result will be:


#5

work fine, I used a class that contains all the property in the form plus the list


#6

hi, I have problems in the edit phase, if I take the selected elements from a custom method as reported in the previous post I don't see the text in the dropdown


#7

sorry for the inconvenience, I was wrong approach, I had to get back a list of guid not the complete objects