We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Output values does not match selected values

Hello community,
I use my own Grid DialogTemplate box that contains the MultiSelect component to insert a new record.

I have a problem with processing the MultiSelect value, when selecting any number of items, only the first one will appear in the output.

Please ask for help or direction in the right direction.

Well thank you

Attachment: MultiSelect_problem_1f2a918f.zip

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team February 7, 2019 02:13 AM

Hi Patrik, 

Greetings from Syncfusion. 

We have analyzed the provided information and we suggest to use the below model class to retrieve the records from the client-side, From the below code example, we have returned the multiselect dropdown values as an array to the controller. So the type has been mismatched and you will get this defect.  
public class ReceiveDataModel 
        public int MakeID { get; set; } 
        public string MakeName { get; set; } 
        public int[] AccessoryName { get; set; } 

public JsonResult OnPostEditMake([FromBody]CRUDModel<ReceiveDataModel> value) 
            var x = value.Value; 
            return new JsonResult(value.Value); 

We have created a sample with the above mentioned model class and that can be download from the below link, 

Please get back to us, if you need further assistance. 

Thavasianand S. 

Live Chat Icon For mobile
Up arrow icon