The AM/PM mask of the DataTimePicker is editable.
The behavior might be related to the introduction of the common DateInput package in the DatePickers.
The AM mask gets deleted and is replaced by the default AM/PM
The AM mask should be non-editable as it isn't part of the value of the Widget.
### Bug report
When the Dialog is configured with actions and the Content Security Policy is enabled, it throws an "Invalid template" error.
### Reproduction of the problem
1) Configure a Dialog widget with actions and set the CSP with the following content:
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' https://kendo.cdn.telerik.com https://code.jquery.com; style-src 'self' 'unsafe-inline' https://kendo.cdn.telerik.com;" />
2) Open the browser console to review the error.
A Dojo sample for reproduction: https://dojo.telerik.com/ULOyazUC
### Expected/desired behavior
The Dialog should be rendered correctly without using the 'unsafe-eval' keyword in the "script-src" directive.
### Workaround
Insert the following script before the Dialog initialization:
<script>
kendo.ui.Dialog.fn._mergeTextWithOptions = function(action) { var text = action.text; if(text) { return kendo.isFunction(text) ? text(this.options) : text; } return ""; }
</script>
### Environment
* **Kendo UI version: 2023.2.606
* **jQuery version: 3.4.1
* **Browser: [all]
When the Editor is configured by using tagHelpers and the configuration of the tools is on multiple lines additional new lines are added to the Editor content due to the tags used for the tool's configuration.
<button onclick="getValue()">get Value</button>
Test-1:<br /><br /><br /><br />
<kendo-editor name="test1" tag="div" >
<tools>
<tool name="viewHtml" />
</tools>
</kendo-editor>
<script>
function getValue() {
var editor1 = $("#test1").data("kendoEditor");
console.log(editor1.value())
};
</script>
The value of the editor has additional new lines. The additional lines could be observed also in the 'viewhtml' tool. (screencast)
There should be no additional new lines added to the Editor's content.
Configure the Editor on a single line
<kendo-editor name="test1" tag="div"><tools><tool name="viewHtml" /></tools></kendo-editor>
When tabbing in a batch editable Grid cells do not enter edit mode.
This is a regression introduced with v 2023.2.606.
The corresponding Unit Price is focused, but an editor is not generated
The cell should enter edit mode, as with v2023.1.425 - dojo
### Bug report
When the Gantt has a custom editor template, the Update request is not fired. When using the default editor template, the respective task is updated correctly.
The last version, where this scenario works as expected, is 2023.1.117.
### Reproduction of the problem
1) Define an editable Gantt that binds to remote data.
2) Set up a custom editor by using the editable.template option.
3) Try to edit a Task in the Gantt timeline table. The editable model is marked as "dirty", but the "save" event does not fire and the Update request does not trigger:
However, when using the default Gantt editor, the request triggers as expected.
A Dojo sample for reproduction: https://dojo.telerik.com/EyumevaD
### Expected/desired behavior
The tasks should be edited correctly when using a custom editor template.
### Environment
* **Kendo UI version: 2023.1.314
* **jQuery version: 3.4.1
* **Browser: [all]
The Visible() API configuration is not applied correctly in the TreeView.
false
and notice that the item is not hidden.The Visible() API configuration is not applied correctly.
The Visible() API configuration should be applied correctly similar to how the Menu wrapper:
https://netcorerepl.telerik.com/cnvbcckN56kmV36Z07
Regression introduced with 2023.2.606
The menu dropdown does not respect hoverDelay and it remains open on initial expansion.
If the mouse/cursor doesn't hover over the menu item for the entirety of the hover-delay duration, the menu item opens.
If the mouse/cursor doesn't hover over the menu item for the entirety of the hover-delay duration, the menu item should not open. This behavior can be exhibited with versions prior to 2023.2.606.
For example:
https://dojo.telerik.com/iyAfaVUR
When both UI for ASP.NET MVC and UI for ASP.NET Core Visual Studio extensions are installed and only UI for ASP.NET Core project is loaded, the notification for new version is shown for UI for ASP.NET MVC.
Menu popup container closes on hover when scrollable
is enabled.
This is a regression introduced with v2023.2.606.
Popup container closes on hover and subitems cannot be selected.
Popup container should not close on hover.
RadioGroup is not serialized correctly when declared in the Template component.
CustomerRating
field is not serialized correctly.The RadioGroup is not serialized correctly when declared in the Template component.
The RadioGroup should be serialized correctly when declared in the Template component.
Security trimming returns incorrect items when there are two controllers with the same name but located in different areas.
With the following Menu configuration
@(Html.Kendo().Menu()
.Name("menu")
.SecurityTrimming(st=>{
st.Enabled(true);
})
.Items(i=>{
i.Add().Action("MyAction","Home",new {area = "Area1"}).Text("Accessible Item");
i.Add().Action("MyAction","Home",new {area = "Area2"}).Text("Authorized Item");
})
)
and the following area/controller/action structure the MyAction Action in Area2 will not be trimmed.
Areas
|--Area1
| |--Controllers
| |--HomeController
| |--MyAction
|--Area2
|--Controllers
|--HomeController
|--[Authorize]MyAction
MyAction Action in Area2 should be trimmed.
Adding the [Authorize]
attribute to a controller does not hide the action methods when SecurityTrimming is enabled.
[Authorize]
attribute to a controller: [Authorize]
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult About()
{
return View();
}
@(Html.Kendo().Menu()
.Name("menu")
.SecurityTrimming(st=>{
st.Enabled(true);
})
.Items(i=>{
i.Add().Action("Index", "Home").Text("Index");
i.Add().Action("About", "Home").Text("About");
})
)
The Index and About menu items will not be hidden.
The Index and About menu items should be hidden when the [Authorize]
attribute is added to the controller.
### Bug report
Adding the [Authorize(Roles = "Admin, User")] attribute at Controller or Actions within the Controller does not show the Menu items.
### Reproduction of the problem
1. Create an application with authorization and add "Admin" and "User" roles.
2. Add the [Authorize(Roles = "Admin, User")] attribute to a specified Action method within the Controller:
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
[Authorize(Roles = "Admin, User")]
public IActionResult Security_Information()
{
return View();
}
}
3. Add a Menu:
@(Html.Kendo().Menu()
.Name("htmlhelperMenu")
.SecurityTrimming(true)
.Items(menu =>
{
menu.Add().Text("Home").Action("Index", "Home");
menu.Add().Text("Security Information").Action("Security_Information", "Home");
})
)
<kendo-menu name="taghelperMenu">
<items>
<menu-item text="View Inventory">
<sub-items>
<menu-item text="Home" asp-controller="Home" asp-action="Index"></menu-item>
<menu-item text="Security Information" asp-controller="Home" asp-action="Security_Information"></menu-item>
</sub-items>
</menu-item>
</items>
</kendo-menu>
3. The "Security Information" Menu item is not visible when the user is logged as "Admin" or as "User".
### Expected/desired behavior
The "Security Information" Menu item should be visible when the [Authorize(Roles = "Admin, User")] attribute is added to the respective Action/Controller and the user is logged as "Admin" or as "User".
### Environment
* **Telerik UI for ASP.NET Core version: 2023.2.606
* **Browser: [all]
When no datasource is bound, the slot titles and resource group names are not shown, despite being known. After binding to a datasource, they get set immediately. This leads to a glitchy user experience, as there is an empty table with no text whatsoever, as long no databinding is triggeredThe resource descriptions and slot header texts should be set independently from the data binding. The behavior can be observed in the attached example.
Regards, Frieder
### Bug report
When the custom editor template of the Scheduler contains a label text with a special character, it is encoded automatically. If the encoding contains a hash literal (#), it throws a client-side error "Invalid template".
### Reproduction of the problem
1. Create a Scheduler with a custom editor template.
2. Add a label for a specified Model property by using the @(Html.LabelFor(model => model)) configuration.
3. Add a label text with a special character as per the example below.
<div class="k-edit-label">
@(Html.LabelFor(model => model.Title, "Durchfüehrung"))
</div>
<div data-container-for="title" class="k-edit-field">
@(Html.Kendo().TextBoxFor(model => model.Title)
.HtmlAttributes(new { data_bind = "value: title"})
)
<span data-for="title" class="k-invalid-msg"></span>
</div>
4. Try to add an event or edit an existing event. Open the browser console to review the error:
### Expected/desired behavior
The hash literals in the encoded strings should be escaped automatically.
### Environment
* **Telerik UI for ASP.NET Core version: 2023.2.718
* **Browser: [all]
Using a UI for ASP.NET MVC/Core Form, if a boolean property is defined as required with the [Required] attribute, and the Hint() option is not defined, the Form does not validate the checkbox.
Please visit the following Live demo, and submit the form.
The form will submit without validating the checkbox.
The Required attribute should be evaluated for validation.
### Bug report
When the Pager's width is less than 600px, both page number buttons and the "Page select" select element are visible.
### Reproduction of the problem
Dojo sample for reproduction: https://dojo.telerik.com/eNoWEhIg
### Expected/desired behavior
The page buttons must be hidden when the "Select page" dropdown (select element) is visible.
### Environment
* **Kendo UI version: 2023.2.829
* **jQuery version: 1.12.4
* **Browser: [all]
When the hoverDelay of the Menu widget is enabled the items of the Menu do not collapse properly after their initial expand.
Behavior occurs only on first expand of the items.
If the behavior isn't reproducible at initially refresh the page and try again.
Menu Items that aren't currently hovered over should collapse.
Menu Items remain expanded.
Using kendo.WidgetInstance method for the RadioGroup Component in Telerik UI for ASP .NET Core returns undefined.
kendo.WidgetInstance returns undefined when the id of a RadioGroup initialized using Telerik UI for Core is passed to it.
The kendo.WidgetInstance should return the client-side instance of the Component in Telerik UI for Core
Grid Filterable Button Title Message is not correctly serialized.
Set the Filterable.Messages.ButtonTitle() API Configuration as follows:
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Filterable(f => f.Messages(m => m.ButtonTitle("Filter")))
)
Hover the Filter Button Icon and notice that the buttonTitle message is applied instead.
The Filter ButtonTitle message shows its default message.
The Filter ButtonTitle should show the custom-provided message.