telerik

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

Telerik RadWindow icon not displayed on task bar c# wpf [duplicate]

左心房为你撑大大i 提交于 2019-12-08 05:17:48
问题 This question already has answers here : How to assign Application Icon that will display in Task bar? (6 answers) Closed 5 years ago . I have created one application using c# wpf. I have set the application icon from the properties->Application,but some how application icon not displayed on taskbar.the application is running but nothing displayed on the taskbar. I can operate application properly. I not getting what is wrong 回答1: Hey you can try this out private void MainWindow_Loaded(object

Combobox item style

蓝咒 提交于 2019-12-08 05:11:28
问题 my project is asp.net MVC, using Telerik MVC combobox. I can change the sytle of the first item if I use: var item = combobox.dropDown.$items.first(); item.addClass('test'); Or change all items, using: combobox.dropDown.$items.addClass('test'); But I need to change just specific items (based on a model), I tried: combobox.dropDown.$items[1].addClass('test'); I get this error: Object doesn't support property or method 'addClass ' 回答1: If it's a jQuery object, you should replace: combobox

Radcombobox inside Radgrid FormTemplate

筅森魡賤 提交于 2019-12-08 04:46:26
问题 G'day, I have a RadComboBox control inside of a RadGrid that is displayed when the InitInsert action occurs. I'm using Entity Framework as a datasource & the results contained within this are correct. My problem is that when I use findcontrol it returns nothing. If e.CommandName = "InitInsert" Then RadGrid1.MasterTableView.InsertItemDisplay = Telerik.Web.UI.GridInsertItemDisplay.Bottom Dim query = From myTable In dbEntity.myTables Select myTable.Name, myTable.ID Dim mineCompBox = CType(e.Item

custom styling of specific component getting applied to all the components in angular 6

送分小仙女□ 提交于 2019-12-08 03:58:20
问题 ui grid, I am trying to apply custom styling to specific component(i want to change font size for that specific component), but when i write css code in that particular components css file, and after loading that component that style is getting applied to all the other components also following is the code in css file .k-grid td { font-size: 10px !important; } .k-grid tr { font-size: 10px; } code in ts file @Component({ selector: 'app-work-request-queue-child', templateUrl: './work-request

How can I track the source of slowness for my scenario?

半腔热情 提交于 2019-12-08 03:25:32
I'm stumped on this performance issue. When paging a RadGrid I get instantaneous results. However, when I filter any of the columns, the query takes around 10 seconds to complete and any paging applied after the filter remains just as slow. If I remove the filter the performance is just fine. Production is a SharePoint 2010 Server which is hosted in-house with a small number of users. I am using a RadGrid control, version 2009.3..1314.35 that queries a table containing 30,000 records. I am using LINQ to SQL for the back-end. I have used IE and Firefox in production. On my development machine

Changing the value of a Telerik RadEditor with Javascript/jQuery

房东的猫 提交于 2019-12-08 02:25:33
问题 I'm trying to manually clean the HTML of a Telerik RadEditor with Javascript but I can't seem to find the correct place to store the value so that it gets saved on post back. Here's the JS I have: $(function () { jQuery.fixHash = function ($html) { // modify $html return $html; }; $("#adminEditingArea input[id$='SaveButton']").unbind("click").click(function () { $("iframe[id$='_contentIframe']").trigger("save"); // call .net postback return false; }); }); var editorSaveEventInit = false;

Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined

谁都会走 提交于 2019-12-08 01:38:59
问题 I am Developing a web application by using ASP.NET 3.5, jQuery and RadAjax Telerik Control. I get Error Messages when page Loading. that is :"Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined" . Image: and when I click to Open RadWindow then get same Error Message. and could not open radwindow. Image 2: How can I solved this Error. Help me.. Thanks Nahid 回答1: Unfortunately the source of the issue can't really be seen with this kind of

How to set the static text into JsonResult?

懵懂的女人 提交于 2019-12-08 00:46:16
问题 I found the following code example (from Telerik ) that I'm trying to understand. What I need to do is somehow to set static text into JsonResult (e.g.Text ="Abc" and Value="123") public ActionResult _AjaxLoading(string text) { Thread.Sleep(1000); using ( var nw = new NorthwindDataContext() ) { var products = nw.Products.AsQueryable(); if ( text.HasValue() ) { products = products.Where((p) => p.ProductName.StartsWith(text)); } return new JsonResult { Data = new SelectList(products.ToList(),

Move to Following Date Part on Data Entry in DateTimePicker

不想你离开。 提交于 2019-12-07 20:09:54
问题 I have a user request that I'm trying to accommodate, the simplest way I can think to explain is to use illustrate with a picture: Essentially the user is typing a ton of dates in. Instead of typing the MM [Backslash (Or Right Arrow)] DD [Backslash] YYYY [Backslash] etc ... They'd like to Key the value and be moved to the next Date Part Value. While this doesn't seem like much I can imagine it adds up to allot of additional keystrokes and takes the end user off the number pad. I'm currently