or
var viewModel = kendo.observable({ Name : null, Properties : []});viewModel.set("Name", $object.Name);viewModel.set("Properties", $object.Properties);using Kendo.Mvc.UI;
using System.Data;
using System.Linq;
using System.Web.Mvc;
public class EventViewModel : ISchedulerEvent
{
//... getters and setters
}
public class SchedulerEventService : ISchedulerEventService<EventViewModel>{ public virtual void Insert(EventViewModel task, ModelStateDictionary modelState) { //... code emitted } public virtual void Delete(EventViewModel appointment, ModelStateDictionary modelState) { //... code emitted } public virtual IQueryable<EventViewModel> GetAll() { //... code emitted } public virtual void Insert(EventViewModel appointment, ModelStateDictionary modelState) { //... code emitted } public virtual void Update(EventViewModel appointment, ModelStateDictionary modelState) { //... code emitted }}
(function ($) { $.printJSON = function(value){ return JSON.stringify(value, undefined, 2); }})(jQuery);var viewModel = kendo.observable({ // other fields etc update: function (e) { e.preventDefault(); $("#json_result").html($.printJSON(this)); }});<div style="width: 400px; float: left; padding-left: 15px;" > <button data-bind="click: update" value="Update" >Update</button> <pre id="json_result"> </pre></div><script type="text/x-kendo-template" id="notificationListTemplate">
<a class="faqListQuestion" href="${url}" data-rel="external" >${title}<br /><span class="notificationDates">${date}</span></a>
</script>
Is there something wrong with my template or some other workaround for this issue?