I have a Kendo-UI Grid with an AJAX datasource. I am working with ASP.NET-MVC.
The model looks like this:
public class QuestionModelPlayer
{
public Guid Id { get; set; }
public String Description { get; set; }
public string TextAnswer { get; set; }
public int? NummericAnswer { get; set; }
public bool isTextQuestion { get; set; }
}
If the bool IsTextQuestion
is true I want the users have an incell textbox which binds to the field TextAnswer
. If the value is false I want to bind it to the NummericAnswer
property.
How can I do this? I think i need to use a Template or ClientTemplate?