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.

model bind Control

Thread ID:

Created:

Updated:

Platform:

Replies:

132582 Sep 10,2017 10:54 AM Sep 11,2017 07:35 AM ASP.NET Core 1
loading
Tags: Rating
karen anderson
Asked On September 10, 2017 10:54 AM

<ej-rating id="Rating" read-only="false" ej-for="@Model.Feedback.Rating" value="@Model.Feedback.Rating"/>

How do I model bind this control?  ej-for is not an option in intellisense and renders as red when used.

regards

Karen

Keerthana Rajendran [Syncfusion]
Replied On September 11, 2017 07:35 AM

Hi Karen,   
   
Thank you for contacting Syncfusion support.   
   
Currently, we don’t have ej-for support for Rating control but we can model bind the value through value property as shown below   
   
<ej-rating id="Rating" read-only="false" value="@Model.value"/>   
   
public class Rating   
    {  public int value { getset; }  }   
   
public IActionResult Index()   
        {   
            Rating model = new Rating();   
            model.value = 4;   
            return View(model);   
        }   
   
We have attached sample for your reference.   
   
Regards,   
Keerthana   
  
 


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.

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.

;