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

Binding to "Nested" Model property

Thread ID:

Created:

Updated:

Platform:

Replies:

141615 Dec 20,2018 10:35 PM UTC Dec 24,2018 05:23 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: DateTimePicker
Juan Jiminez
Asked On December 20, 2018 10:35 PM UTC

My MVC model has some child classes:


  public class WorkOrderModel
    {
          public DateTime? End_Dt{ get; set; }
          public TimeLogDTO New_Time_Log { get; set; }
    }


If I try to bind SF's MVC controls to a property on the "root" level it works:

         @Html.EJS().DateTimePickerFor(m => m.End_Dt).Render()
                                               

However, if I try to bind it to a child class property, it just doesn;t bind anything on submit.

         @Html.EJS().DateTimePickerFor(m => m.New_Time_Log.End_Dt).Render()


This same sample works with regular MVC controls.

What am I missing?

Deepa Loganathan [Syncfusion]
Replied On December 21, 2018 09:47 AM UTC

Hi Juan,  
 
Sorry for the inconvenience caused.  
 
We have checked the issue reported while posting Datepicker value with child classes and is reproducible in the version 16.3.0.21. However, we have already considered and fixed this in our latest version (16.4.0.42).  
 
So, we kindly request you upgrade to the latest version to get rid of this issue.  
 
Please get back to if you have any further queries. 
 
Regards,  
Deepa L. 


Juan Jiminez
Replied On December 21, 2018 08:13 PM UTC

Thanks, that works.

Christopher Issac Sunder K [Syncfusion]
Replied On December 24, 2018 05:23 AM UTC

Hi Juan,  
  
We are glad to hear that the issue has been resolved. Please let us know if you need any further assistance. 
  
Thanks,
Christo 


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

;