ModelBinding on Post

Hi, i wanted to know if there is a way. or its on the roadmap for supporting ModelBinding on post. Im able to bind the values on Get, but when you post you dont have them updated. So i wanted to know if you are going to add asp-for tags (or similar) so you can bind to the model as normal asp.net core tag helpers

thanks

9 Replies

SM Saranya Murugasamy Syncfusion Team April 24, 2018 12:01 PM UTC

Hi Diego, 

Thanks for your interest in Essential JS 2. 

We are currently working on providing support for ASP.NET Core Model Binding in Essential JS 2 components. We have added this in the Essential Studio Volume 2, 2018 release wishlist which will be tentatively available by May 2018. 

Please let us know if you have any concerns. 

Regards, 
Saranya Murugasamy 



DI Diego April 24, 2018 12:03 PM UTC

Thank you very much. Ill wait till its available, since it makes the code compatible with the .net core standards

thanks


SM Saranya Murugasamy Syncfusion Team April 25, 2018 08:58 AM UTC

Hi Diego, 

We will include .net standard library support from Essential Studio Volume 2 Release. 

Please let us know if you have any concerns. 

Regards, 
Saranya Murugasamy 



DI Diego May 22, 2018 12:04 AM UTC

Hi, Is there an update on the Volume 2 Release date?

thanks!
diego


SM Saranya Murugasamy Syncfusion Team May 22, 2018 05:13 AM UTC

Hi Diego, 

We have planned to rollout the Essential Studio Volume 2, 2018 release by the end of May 2018. 

Please let us know if you have any concerns. 

Regards, 
Saranya Murugasamy 



DI Diego July 13, 2018 12:39 AM UTC

HI, i see that you have released essential studio volume 2 . But i only see new controls that are NOT .net core really. they are just simple javascript that you add from .net. DO you have any plan to support .net core/mvc controls with model binding and tag helpers or you already have them and the demos are outdated?

thanks



SU Sridurgha Uthayakumaran Syncfusion Team July 13, 2018 12:57 PM UTC

Hi Diego, 

Thanks for your interest in Essential JS 2. 
 
Query: DO you have any plan to support .net core/mvc controls with model binding and tag helpers or you already have them and the demos are outdated?  
 
Yes, we have provided the support for model binding and tag helpers for ASP.NET Core platform. Tag helpers support for Essential JS 2 components has been already provided in our sample browser.  

 
For your convenience, we have created a sample using For model binding to render TimePicker component and the same can be referred from the below link. 
 

Please get back to us if we misunderstood your requirement and provide us more information on this. 
 
Regards,
Sridurgha U
 



DI Diego July 13, 2018 07:12 PM UTC

Hi, thanks for the reply. This is an enhancement from previous version, but you are using @model directive in the example and not native model binding support.

Example

public class Movie { public int ID { get; set; } public string Title { get; set; }
   
public DateTime ReleaseDate { get; set; }
   
public string Genre { get; set; }
   
public decimal Price { get; set; }
} <label asp-for="Movie.Title"></label> <--- Here there is no @switch to razor syntax. im using plain html tags so my code is cleaner, and no context switch between razor and html.
Also,While the sample you provide starts to get closer, its really asp.net mvc 4 syntax, not the new html helpers.

also i notice that on the sample u send me the validation logic is server side, not generated as client. Its that only couse its wasn't part of the example. or its not implemented by default as out of the box controls.
<label asp-for="Movie.Title"></label> Thank you very much.



SU Sridurgha Uthayakumaran Syncfusion Team July 17, 2018 05:42 PM UTC

Hi Diego, 

Thanks for your update. 

We would like to let you know that we cannot access model value by using ‘@’, but this can be achieved if model value is accessed from page. We have created a sample which satisfies this requirement and the same can be found from the below link. 


Please get back to us with more detailed description if we misunderstood your query. 

Regards, 
Sridurgha U 


Loader.
Up arrow icon