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

Binding Syncfusion grid with composite objects

Thread ID:

Created:

Updated:

Platform:

Replies:

104458 Jul 20,2012 10:56 AM UTC Aug 23,2012 12:55 PM UTC ASP.NET MVC (Classic) 1
loading
Tags: Grid
Mohit Jain
Asked On July 20, 2012 10:56 AM UTC

Hi,

I am using Asp.Net MVC syncfusion grid.

My model is a list of composite object(one object having another object in it). For each row, we are binding few columns from the object directly and few columns from the inner object of it.

It binds well but problem is there with Save operation.

In Save operation we are not receiving the data in inner object. All fields of inner objects are returned as null. We are getting only those fields populated which exist in outer object.

 

Please suggest on how to retrieve data in Save operation for the fields of inner object.

 

Thanks.

 

Regards,

Mohit


Gowri S [Syncfusion]
Replied On August 23, 2012 12:55 PM UTC

Hi Mohit,

Thanks for using Syncfusion Products.

We regret for the inconvenience caused. We are unable to reproduce the issue.

We can do complex binding as follows :

column.Add(p => p.Customer.Phone).HeaderText("Phone").Width(80);

 

.Mappers(mapper =>

{

mapper.InsertAction("AddOrder")

.SaveAction("OrderSave")

       .DeleteAction("DeleteOrder");

})

 

We have prepared a simple sample and the same can be downloaded from the following links.

 

http://www.syncfusion.com/downloads/Support/DirectTrac/89849/Editing-2017046266.zip

Please let us know if you have any concerns

Regards,

Gowri 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

;