telerik

Kendo UI Chart Colors

余生长醉 提交于 2019-12-06 05:23:29
问题 I'm having trouble configuring the bar colors for a Kendo UI column chart. Here's the code: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <div id="chart"></div> <script src="js/thirdParty/jquery.js"></script> <script src="js/thirdParty/kendo.all.min.js"></script> <script> $(function () { var data, dataSource; data = [{ type: "C1", amount: 100, year: 2008, color: "red" }, { type: "C2", amount: 120, year: 2008, color: "blue" }, { type: "C2",

How to set the static text into JsonResult?

允我心安 提交于 2019-12-06 04:30:43
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(), "ProductID", "ProductName") }; } } Is this what you are looking for return new JsonResult { Text = "Abc"

Asp.Net CPU issue working with Kendo UI treeview after Visual Studio 2013 Update 2

拟墨画扇 提交于 2019-12-06 04:09:27
I'm developing Asp.Net MVC website using Kendo UI. Installed Visual Studio 2013 Update 2 RTM and got CPU issue on IIS (CPU >= 30%). http://c2n.me/i7juKB.png After an hour of searching issue, found that the problem is in Kendo UI Treeview with hierarchical data. Kendo Treeview Asp.Net MVC wrapper code: @(Html.Kendo().TreeView().HtmlAttributes(new { style = "height:150px;" }) .Name("treeview-library-country") .Events(events => events.Select("common.onTreeViewSelect").Collapse("common.onTreeViewCollapse").Expand("common.onTreeViewExpand")) .Checkboxes(checkboxes => checkboxes.Name(

Custom design of a popup in wpf using c# (telerik )

一世执手 提交于 2019-12-06 03:56:45
I am showing an pop up in a button click event> I have kept a custom user control inside that popup and so whenever the pop is being shown taht custom usercontrol will be displayed.But now i need to modify the custom control . Current custom control inside popup looks like below but i need the corner to be look like the below image.. How to do it.? I need that sharp corner in my control and i need that sharp corner point whenever the popup been shown bolow the code of the button and its popup <telerik:RadButton Name="btnH" Grid.Column="1" HorizontalAlignment="Left" Margin="444,56,0,0" Grid.Row

Is it possible to override javascript in an iFrame from the parent? If so how?

牧云@^-^@ 提交于 2019-12-06 01:40:38
I'm using the Telerik RadSpell control in one of our touchscreen applications. I've managed to style it just right however the darn thing uses window.alert and window.confirm for prompting the user if they want to keep changes etc. I want to disable these alerts without having to pull apart and modify the telerik controls. The issue is that the spellcheck dialog uses an iframe and I can't seem to override the window.confirm function inside the iframe. Sample Code to test overriding confirm. <!-- mainpage.htm --> <html> <head> <script type="text/javascript"> window.confirm = function(msg){

28 seconds difference in DateTime column after exporting from Kendo Grid to Excel

孤街浪徒 提交于 2019-12-06 00:39:40
We have a few grids in our web application and we use Kendo for ASP.Net MVC. Some clients are reporting that dates are different when they export the grid data to Excel. As an example, the first row comes from the controller as { "SaleDate": "2018-05-30T00:00:00", "SaleDateAndTime": "2018-05-30T08:01:40.673" } . After exporting to excel, the corresponding cell values are: 05/29/2018 23:59:32 and 05/30/2018 08:01:12 , respectively. I tried exporting dates with different time values and the difference after exporting to excel is always of 28 seconds. This only happens on some clients (timezones

Nested table in Telerik reporting?

蹲街弑〆低调 提交于 2019-12-05 23:53:38
I couldn't find any solution regarding this matter. If anyone use Telerik and have any idea about this please post. :) Currently I have an ojbect: Absence -> List<Available> Available I was successfully pass the List object to the main table and list out the Absence object. However when i try to do something like the ff, I have a mental block and I could not find anyway either on google or on their documentation ------------------------------------------------------------ | ABSENCE | ------------------------------------------------------------ | Field1 | Field2 | | | | ------------------------

HTTP Handler cannot find axd file in nested web application folder: Telerik RadScriptManager cannot find WebResource.axd in ~/admin/ folder

拈花ヽ惹草 提交于 2019-12-05 21:05:09
We have a web application with 2 web.config files. I'm using the telerik:RadScriptManager control within an ASP.NET page. There is web resource file (WebResource.axd) that this control needs access to for it's ScriptReferences. I think this .axd file contains the JavaScript files for Telerik's controls. All of our Rad Controls are implemented in a separate web application (.csproj) project called "admin". The root web application project (.csproj) has a folder called "admin" where all of the admin project files live, including the admin web.config. The page I'm having an issue with here also

Drag drop files from explorer onto Telerik WPF treeview

拈花ヽ惹草 提交于 2019-12-05 18:56:30
How do I set up a telerik WPF RadTreeView to allow dropping files from explorer onto the tree nodes? We go the normal drag n drop events working, but they don't let us know what node we dropped on. We are currently trying to use the Telerik custom drag n drop support but with no luck. Ideas? It is pretty simple, you just have to wire it up your self. Here is a simple example. Then this the XAML: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350"

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies

浪子不回头ぞ 提交于 2019-12-05 18:40:47
I have telrik Q3 ( latest version) and after the abnormal shutdown i am continuously facing that error. Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) I also reinstall the telerik but problem is not resolved. Any one please help me. The temp files that is created by IIS or the built-in Visual Studio development server might cause such problems. Close Visual Studio and try finding your project in one of these places and delete the folder: C:\Windows\Microsoft.NET\Framework\v2.0.50727