Hi,
I am working on making application CSP complaint using UI for ASP.NET MVC R1 2023 SP2 (version 2023.1.425).
Grid column is having ClientTemplate which is causing grid to be empty. This was working prior.
Below is the code snippet:
.ClientTemplate("<a target='_blank' href=" + @Url.Action("ReportRouter", "Reports") + "?reportId=#=ReportId#>#=DisplayName#</a>");
Developer tool is showing Invalid template error. I have also added
@(Html.Kendo().DeferredScriptFile())
Any input is appreciated.
RadEditor is closing the source element that is nested inside the video element . For example, in the attached screen shots show the “source” element which we add it to Rich text field. After we save the Rich Text field and open it again, we see the source element is closed. Is there a configuration setting that would allow us to bypass the closure of the source element?
Hello,
I need to apply the default template to all cells without template in all grids throughout the existing application, for example:
<span class="some-css-class">FieldValue</span>
Is there a way to achieve this?
Thanks,
Dennis
we are working to fix the issue with Kendo-CSP for ASP.Net MVC with jQuery Kendo UI. In our application currently, we are using Kendo grids, dropdowns, and popups.
Initially, we have implemented the below changes for CSP.
Recently we got a new version of Telerik R1 2023, Replaced the below files for Upgrade.
we tried with new changes of kendo, without Unsafe prefix but it's throwing dynamic script errors, kendo controles not working. Our assumption is there are dynamic inline script Generations for Kendo controls which not contains nonce which may cause an issue.
We also tried with Deferred-Script but no use.
we are facing console issues related to Style and Scripts. Help me out.
Thanks.
Here is the code to show the list, it also has a part to show detail information by expanding the record, it shows the details first time you expand the record for some seconds and then clear them , and if you expand it again this time you can see details!
wonder if something triggered to clear the details or what, as it has the details so I don't think it would be matter of reading data!
@(Html.Kendo().Grid(Model)
.Name("LSGrid")
.AutoBind(false)
.NoRecords(x => x.Template("<div class=\"k-grid-norecords-template\">No records found that match your search criteria </div>"))
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Rail Infrastructure Manager").HeaderHtmlAttributes(new { style = "font-weight: bold" });
columns.Bound(p => p.Ref).Title("Line section ID").HeaderHtmlAttributes(new { style = "font-weight: bold" });
})
.Events(e => e.DetailExpand("detailExpand"))
.ClientDetailTemplateId("template")
.Pageable( pageable => pageable.ButtonCount(10))
.Sortable()
.Scrollable(scr=>scr.Height(300))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(true)
)
)
<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().Grid<Dto>()
.Name("grid_#=Id#") // template expression, to be evaluated in the master context
.Columns(columns =>
{
columns.Bound(o => o.Id).Title("State/Territory").Width(110);
columns.Bound(o => o.StartKm).Title("Start Km Point").Width(110);
columns.Bound(o => o.EndKm).Title("End Km Point").Width(110);
})
.Pageable()
.ToClientTemplate()
)
</script>
Can someone please help with the MVC wrapper syntax to accomplish this: https://docs.telerik.com/kendo-ui/knowledge-base/use-different-popup-editor-for-create-update
I would like to specify different template names for new and edit with two different cshtml editor template files