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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Output values does not match selected values

Thread ID:

Created:

Updated:

Platform:

Replies:

142481 Feb 6,2019 06:33 AM UTC Feb 7,2019 07:13 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: DataGrid
Patrik Volka
Asked On February 6, 2019 06:33 AM UTC

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

Thavasianand Sankaranarayanan [Syncfusion]
Replied On February 7, 2019 07:13 AM UTC

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. 

Regards, 
Thavasianand S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon