or
dataSource = new kendo.data.SchedulerDataSource({ sync: function () { this.read(); }, batch: true, transport: { read: { url: m_serverUrl + "/ActivityPointerSet", dataType: 'json' }, parameterMap: function (options) { var parameter = { $filter: filterstring, $select: 'ActivityTypeCode,ActivityId,Subject,ScheduledEnd,ScheduledStart,StatusCode,OwnerId' }; return parameter; } }, schema: { model: { id: "ActivityId", fields: { taskId: { from: "ActivityId" }, title: { from: "Subject", defaultValue: "No title", validation: { required: true} }, start: { type: "date", from: "ScheduledStart" }, end: { type: "date", from: "ScheduledEnd" }, //startTimezone: { from: "StartTimezone" }, //endTimezone: { from: "EndTimezone" }, StatusCode: { from: "StatusCode" }, roomId: { from: "ActivityTypeCode" }, description: { from: "StatusCode" }, recurrenceId: { from: "RecurrenceID" }, recurrenceRule: { from: "RecurrenceRule" }, recurrenceException: { from: "RecurrenceException" }, ownerId: { from: "OwnerId", defaultValue: 1 }, isAllDay: { type: "boolean", defaultValue: false } } }, parse: function (data) { return data.d.results; }, type: "json" }, serverSorting: true, serverFiltering: true }); return dataSource;}function ISV_Abs_InitKendoScheduler() { var datasource = ISV_Abs_GetSchedulerDataSource(); $("#scheduler").kendoScheduler({ date: new Date(), editable: { confirmation: "Are you sure you want to delete this Sales Call?" }, startTime: new Date("2013/6/13 07:00 AM"), navigate: scheduler_navigate, remove: scheduler_remove, resizeStart: scheduler_resizestart, save: scheduler_save, moveStart: scheduler_movestart, views: [ "day", { type: "week", selected: true }, "month", "agenda" ], edit: function (e) { Xrm.Utility.openEntityForm(e.event.roomId, e.event.taskId, null); e.preventDefault(); return false; }, dataSource: dataSource, resources: [ { field: "roomId", dataSource: [ { text: "Sales Call", value: "abs_salescall", color: "#7ea700" }, { text: "Appointment", value: "appointment", color: "#0094E5" } ], title: "Activity Type" }] });}function scheduler_movestart(e) { if (e.event.description.Value == 2 || e.event.description.Value == 3) { alert("Cannot update a canceled or completed Activity"); e.preventDefault(); return false; }}
{ name: "formatting", items: [ { text: "Important", value: ".Red" }, { text: "Low", value: ".Blue" }, { text: "Clear", value: "p" , context:"span" }, ] }
I would like add a clear item which do a remove of the <span class="important">XXXXXX </span> .
Is it possible
Thanks for help
LH 1611 MUC STD07:50/05 ETD Flight Status: Remark:public class vwPanelItem{ public string value { get; set; } public string text { get; set; } public string content { get; set; }}<ul id="kjContactsPanel"></ul><script type="text/javascript"> // var contactsDataSource = new kendo.data.DataSource({ transport: { read: { url: "/Services/Contacts.asmx/@(ViewBag.RequestService)", dataType: "json", type: "POST", contentType: "application/json; charset=utf-8" }, }, schema: { data: "d" }, change: function () { var panelItems = this.view().toJSON(); var panelBar = $("#kjContactsPanel").kendoPanelBar({ dataSource: panelItems, expandMode: "single" }).data("kendoPanelBar"); } }); // contactsDataSource.read(); //</script>