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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue related to GridEditMode.Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

101015 Sep 20,2011 11:28 AM UTC Sep 22,2011 04:31 PM UTC ASP.NET MVC (Classic) 1
loading
Tags: Tools
shivkumar
Asked On September 20, 2011 11:28 AM UTC

hello,

i have use sync fusion grid in razor view,i want to edit grid content by using GridEditMode.Dialog, but when i have set this property it show this error "No parameterless constructor defined for this object."
i have also attach my application please go through it.and give me some information how i will update grid content by using GridEditMode.Dialog or modified my sample code.

please refer ("Grid Demo") link in application for grid Demo



SheduleDemo_91fc2a6.rar

Eswari S [Syncfusion]
Replied On September 22, 2011 04:31 PM UTC


Hi ShivKumar ,

The suspect that the cause of the issue is , you would have missed to define the parameter less constructor for CustomerClass. Please refer to the following code snippets:


public class CustomerClass
{
[Required]
public int Id { get; set; }
public string Name { get; set; }
public string Address { get; set; }


public CustomerClass() { } // needs to be define

public CustomerClass(int id,string name, string address)
{
Id = id;
Name = name;
Address = address;
}
}

Please try this and let us know if you would require any further assistance.

Regards,
Eswari.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.

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

;