Hello,
I am having some trouble using custom callbacks for PasteCleanup, Deserialization or Serialization. Whatever input string I give as the custom callback, be it a function name or declaration, just gets double quoted in the editor configuration javascript that is generated and is then seemly ignored. Unlike how setting an event callback works.
How do I setup an editor to use these features?
Sample code:
@(Html.Kendo().Editor() .Name("bloop") .PasteCleanup(e => e.Custom("onPaste")) .Deserialization(e => e.Custom("onDeserialization")) .Serialization(e => e.Custom("onSerialization")) .Events(e => e.Change("onChange")))<script type="text/javascript"> function onPaste(html) { console.log('onPaste'); return html; } function onSerialization(html) { console.log('onSerialization'); return html; } function onDeserialization(html) { console.log('onDeserialization'); return html; } function onChange() { console.log('onChange'); }</script>
Using that above code Html.Kendo().Editor() is generating the following javascript when it executes:
jQuery(function(){jQuery("#bloop").kendoEditor({"change":onChange,"deserialization":{"custom":"onDeserialization"},"pasteCleanup":{"custom":"onPaste"},"serialization":{"custom":"onSerialization"},"tools":[{"name":"formatting"},{"name":"bold"},{"name":"italic"},{"name":"underline"},{"name":"justifyLeft"},{"name":"justifyCenter"},{"name":"justifyRight"},{"name":"insertUnorderedList"},{"name":"insertOrderedList"},{"name":"outdent"},{"name":"indent"},{"name":"createLink"},{"name":"unlink"},{"name":"insertImage"},{"name":"createTable"},{"name":"addColumnLeft"},{"name":"addColumnRight"},{"name":"addRowAbove"},{"name":"addRowBelow"},{"name":"deleteRow"},{"name":"deleteColumn"}]});});Note how onDeserialization is double quoted where onChange is not.
Using R2 2016 SP2 (2016.2.714) with MVC4.
Thank you
Hi,
the example http://demos.telerik.com/aspnet-mvc/financial/panes show how to plot the volume in a second pane.
How can I plot Line + Volume in one pane? Similar: http://finance.yahoo.com/chart/aapl
Peter
I have a form with input text boxes, search button and grid to display the result. Once user clicks on Search button, the result get displayed in the grid. I have 10,20, 50, 100, All set as paging option in the grid. At first when the result gets displayed in the grid the paging value is 10. The issue is once the user selects different paging value e.g. 50 and perform search again, the result that get displayed in the grid is with paging value of 50.
Is there anyway to reset paging value back to 10 again whenever new search is performed?
Thanks.
Avinash

How to localize in french create event popup ?
Please see attached file, i would like have title in french :
Event ==> Evenement
None ==> aucun
Time ==> heure
Here is my code
@(Html.Kendo().Scheduler<TaskViewModel>()
.Name("schedule")
.Date(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
.StartTime(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 9, 00, 00))
.EndTime(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 18, 00, 00))
.HtmlAttributes(new { @class = "ra-section" })
.Views(views =>
{
views.DayView(dayView =>
dayView.Selected(true));
views.WeekView();
views.MonthView();
views.AgendaView();
})
.Editable(true)
.Timezone("Etc/UTC")
.DataSource(dataSource =>
dataSource
.Model(m =>
{
m.Id(f => f.TaskID);
m.Field(f => f.Title);
m.Field(f => f.Start);
m.Field(f => f.End);
m.Field(f =>
f.EndTimezone);
})
.Events(e => e.Error("error_handler"))
.Read("ChargerTous", "TaskScheduler")
.Create("Ajouter", "TaskScheduler")
.Update("Modifier", "TaskScheduler")
.Destroy("Supprimer", "TaskScheduler")
)
Hello Support,
Columns and Rows are not displayed when the Spreadsheet Control is placed inside a Panel Bar.
The spreadsheet control crashes with missing references when clicking on it.
Sample "simple" code.
@(Html.Kendo().PanelBar()
.Name("TestPanelBar")
.Items(items =>
{
items.Add()
.Text("Spreadsheet1")
.Content(@<text>
@(Html.Kendo().Spreadsheet()
.Name("TestSpreadsheet")
.HtmlAttributes(new { style = "width:100%" })
.Sheets(sheets =>
{
sheets.Add()
.Name("Sheet1")
.Columns(columns =>
{
columns.Add().Width(200);
columns.Add().Width(200);
})
.Rows(rows =>
{
rows.Add().Height(25).Cells(cells =>
{
cells.Add()
.Value("Column1")
.Background("rgb(167,214,255)")
.Color("rgb(0,62,117)")
.TextAlign(SpreadsheetTextAlign.Center);
cells.Add()
.Value("Column2")
.Background("rgb(167,214,255)")
.Color("rgb(0,62,117)")
.TextAlign(SpreadsheetTextAlign.Center);
});
});
})
)
</text>);
})
)
Hello Everyone,
You can use the Spreadsheet Demo on the Telerik Web site.
Select one of the numeric values in the quantity column and choose Data Validation -> List.
Write H1:H3 on the Value for validation and fill the range with values.
Now make sure you enter a number that fails validation. You receive correctly the error dialog.
Close it and Check the Data Validation Rule for that cell.
It has changed to: _matrix(H1:H3)
Now perform more failed validations (closing the dialogs).
Check again Data Validation Rule for that cell.
It has changed to more nested "_matrix" such as "_matrix(_matrix(H1:H3))"
This process of corruption continues with side effects such as: dialog opened as many times as the number of _matrix in the Data Validation Value.
Tested on IE Edge, IE 11 and Firefox 47.0.1 with same results.
Best Regards
Hi, I would like to validate ressource in a scheler
@(Html.Kendo().Scheduler<SchedulerCustomViewDemo.Models.MeetingViewModel>()
.Name("scheduler")
.Date(new DateTime(2016, 6, 13))
.StartTime(new DateTime(2016, 6, 13, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
views.CustomView("kendo.ui.ToDoView", view => view.Title("To Do").Selected(true));
})
.Timezone("Etc/UTC")
.Resources(resource =>
{
resource.Add(m => m.RoomID)
.Title("Room")
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Meeting Room 101", Value = 1, Color = "#6eb3fa" },
new { Text = "Meeting Room 201", Value = 2, Color = "#f58a8a" }
});
resource.Add(m => m.Attendees)
.Title("Attendees")
.Multiple(false)
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Alex", Value = 1, Color = "#f8a398" },
new { Text = "Bob", Value = 2, Color = "#51a0ed" },
new { Text = "Charlie", Value = 3, Color = "#56ca85" }
});
})
.DataSource(d => d
.Model(m =>
{
m.Id(f => f.MeetingID);
m.Field(f => f.Title).DefaultValue("No title");
m.RecurrenceId(f => f.RecurrenceID);
})
.Events(e => e.Error("error_handler"))
.Read("Meetings_Read", "Home")
.Create("Meetings_Create", "Home")
.Destroy("Meetings_Destroy", "Home")
.Update("Meetings_Update", "Home")
)
)
So I would like to valide the Attendee Field so as to make it required but it is not possible to apply .HtmlAttribute to .Ressource :
(HtmlAttributes(new { required = "required", data_required_msg = "Select start time", style = "width: 220px" }))
resource.Add(m => m.Attendees)
.Title("Attendee")
.Multiple(false)
.DataTextField("Text")
.DataValueField("Value")
.DataColorField("Color")
.BindTo(new[] {
new { Text = "Alex", Value = 1, Color = "#f8a398" },
new { Text = "Bob", Value = 2, Color = "#51a0ed" },
new { Text = "Charlie", Value = 3, Color = "#56ca85" }
});
Hello,
I use a grip component from UI for ASP.NET MVC and I have a problem with localization of the grid.
The problem is on image "grid1.png". In a red rectangle there is the wrong localized text and in a green rectangle there is the right/correct localized text.
I'm loading these javascripts on the web page (where variable culture is "cs-CZ"):
<script src="@Url.Content("~/Scripts/kendo/cultures/kendo.culture." + culture + ".min.js")"></script><script src="@Url.Content("~/Scripts/kendo/messages/kendo.messages." + culture + ".min.js")"></script><script> $(document).ready(function () { kendo.culture("@culture"); //culture of your choice $.validator.addMethod('date', function (value, element) { return this.optional(element) || kendo.parseDate(value) }); });</script>All javascripts, which are loaded on the web page, are on image "scripts.png".
Could you help me?
Thank you for your advice.