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.

Issue related to GridEditMode.Dialog

Thread ID:





101015 Sep 20,2011 07:28 AM Sep 22,2011 12:31 PM ASP.NET MVC (Classic) 1
Tags: Tools
Asked On September 20, 2011 07:28 AM


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


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

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
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.



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.

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.