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
close icon

Issue related to GridEditMode.Dialog

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

1 Reply

ES Eswari S Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon