kendo-ui

How can I get KendoUI MVC to work with Content Security Policy

十年热恋 提交于 2019-12-08 06:36:00
问题 How do I avoid Telerik KendoUI creating inline scripts when using ASP.NET MVC Kendo compontents? The reason for avoiding inline scripts is to adhere by CSP header Content-Security-Policy: script-src 'self' 'unsafe-eval' https://kendo.cdn.telerik.com And not to get errors like Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://kendo.cdn.telerik.com". Is there a way to remove the kendo generated inline

Kendo UI Icons not displayed in Web browser control

懵懂的女人 提交于 2019-12-08 06:28:07
问题 I have a website developed using Kendo UI(kendoui.professional.2017.1.118.commercial). The Kendo icons(Grid Edit(k-i-edit) and delete command button icons and calendar control icons and grid pager icons, etc.) are not visible when i open my website in Microsoft Browser Control where as if i open the website in Internet Explorer browser the icons are displayed. Observed the following: I am using Windows Server 2012 R2 OS where the IE Enhanced Security Configuration is "ON". If i make this "OFF

How do I update a Kendo scheduler from a SignalR hub method?

孤人 提交于 2019-12-08 06:19:31
问题 Here is the code using signalr, it successfully sends the information to the hub and the hub is just doing a clients.all.Notifiy etc etc..... I've just add the code sample that you recommedend, i doing this from the scheduler_change(e) so that on a single click it will insert the info that is returned from the hub.. for some reason the new booking does not show on the scheduler. function scheduler_change(e) { var start = e.start; //selection start date var end = e.end; //selection end date

Kendo Grid in Bootstrap 2 or 3 Modal - IE Filters do not work

不羁岁月 提交于 2019-12-08 06:15:12
问题 Please check this out in IE (boot v2): http://jsbin.com/emuqazEz/22 Here is bootstrap 3 version: http://jsbin.com/emuqazEz/31 Here is the editable version: http://jsbin.com/emuqazEz/22/edit The filters do not work at all in any version of IE I have tested. It works fine however in Chrome or Firefox. Here is are the column settings and the datasource: columnsettings = [ "ProductName", { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "130px" }, { field: "UnitsInStock", title:

Create another toolbar in kendo grid

我的梦境 提交于 2019-12-08 05:54:05
问题 I am using Kendo library for grid. I want to have a toolbar in that grid. I have followed this link - http://demos.kendoui.com/web/grid/toolbar-template.html and created a toolbar at the top I also want to add another toolbar at the bottom of grid. Below or above pagination bar. I could not find any way to create this extra toolbar. Please help. 回答1: There are two ways of getting it: You let Kendo UI generate in the top and then you move it to the bottom You generate it to the bottom. The

kendo ui get id of checkbox when unchecked

孤人 提交于 2019-12-08 04:50:51
问题 i am using kendo ui tree view with check box i want the check box's id when it is getting unchecked this is kendo ui mine code // var homogeneous contains data $("#treeview").kendoTreeView({ checkboxes: { checkChildren: false, template:"# if(!item.hasChildren){# <input type='hidden' id='#=item.id#' parent_id='#=item.parent_id#' d_text='#=item.value#'/> <input type='checkbox' id_a='#= item.id #' name='c_#= item.id #' value='true' />#}else{# <div id='#=item.id#' style='display:none;' parent_id=

Javascript and C# rounding hell

假装没事ソ 提交于 2019-12-08 04:05:28
问题 As you know due to genius rounding rule in C# we are getting the following values: decimal d = 2.155M; var r = Math.Round(d, 2); //2.16 decimal d = 2.145M; var r = Math.Round(d, 2); //2.14 Now on client side in Javascript I am getting: 2.155.toFixed(2) "2.15" 2.145.toFixed(2) "2.15" kendo.toString(2.155, 'n2') "2.16" kendo.toString(2.145, 'n2') "2.15" But I have validations in the backend that is failing due to this. What is the correct way to deal with this kind of situation? How can I sync

Kendo Ui draggable like windows desktop

£可爱£侵袭症+ 提交于 2019-12-08 02:55:38
问题 I need to simulate a desktop icon drag and drop, i do this: $(".draggable").kendoDraggable({ container: $("#desktop"), hint: function() { return $(".draggable").clone(); }, dragend: function(e) { console.log(e); console.log(e.currentTarget.attr("src")); e.currentTarget.css("top",e.y.location); e.currentTarget.css("left",e.x.location); } }); but im not sure if is a nice way and the drag roll back effect break my solution. Hava a simple way to do this with KendoUI (No Jquery UI draggable). Any

kendo grid server side filtering and not working

浪尽此生 提交于 2019-12-08 02:15:31
问题 I'm using a Kendo Grid, with Server Side Filtering, Sorting and Pagination. This my code for initializing the Grid: In this code Server side pagination and virtual scroll is working but filtering and shorting is not working. In any request, I am getting this type of request parameters. [HttpPost] public JsonResult getGridData([DataSourceRequest] DataSourceRequest request) { var userList = data; return Json(userList.ToDataSourceResult(request)); } $("#grid").kendoGrid({ dataSource: { type:

How to change color of row depending on a row's value in a Kendo UI Grid

天涯浪子 提交于 2019-12-08 02:07:58
问题 I have a Kendo UI Grid, which contains four columns: Highlight MAC Time Message The Highlight column can contain the values "yes" or "no", and this column is hidden. I need to create a row template that will highlight (change the color or something) the row if the value is yes. 回答1: You can apply condition in Row Template, Try Something like below $("#grid").kendoGrid({ dataSource: ds, rowTemplate: '<tr class="#:Highlight ==\"Yes\"? \"red\" : \"white\"#" data-uid="#= uid #"><td>#: MAC #</td>