telerik

Telerik grid custom column building/formatting

旧街凉风 提交于 2019-12-22 12:26:44
问题 I have a telerik grid with a dynamic data source (the grid may use up to roughly 10 totally different models for its data), so I have to build the columns dynamically as well (obviously). One of the columns in the grid (with certain models) is a double representing a time span in milliseconds. What I want to do is format this double to look like a timespan .The telerik code looks like this: <% Html.Telerik() .Grid(Model.DynamicGridDataSource) .Name("statisticalGrid") .Columns(a => GridHelper

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

旧巷老猫 提交于 2019-12-22 10:26:35
问题 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. 回答1: 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

Nested table in Telerik reporting?

末鹿安然 提交于 2019-12-22 10:10:33
问题 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 | --------

Drag drop files from explorer onto Telerik WPF treeview

烈酒焚心 提交于 2019-12-22 09:58:41
问题 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? 回答1: 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

Kendo Grid - Bind Data After Search

纵饮孤独 提交于 2019-12-22 07:06:20
问题 ASP.NET MVC 4 | .NET 4.5 | Razor| C# I have a textbox and a button at the top of the page. Below that is a Kendo Grid which is bound to a List in my view model. When the user clicks the search button a jQuery ajax request is made and the data is returned as JSON. The only question I have is how do I bind that data to my Kendo Grid? Any help is appreciated. @(Html.Kendo().Grid(Model.PurchaseOrder.LineItems) .Name("poSearchGrid") .Columns(c => { c.Bound(x => x.LineNumber).Title("Line Number");

MVVM binding double click to method using telerik radtreecontrol

孤街浪徒 提交于 2019-12-22 05:49:14
问题 I've been working on this problem for a stupid amount of time. It is time to ask for directions despite my inner man saying "don't do it." I am coding in WPF C# using MVVM design pattern. We try to adhere strictly to the pattern and put nothing in the code behind unless there is no option or it is completely unreasonable to do so. Having said that, I am working with a Telerik RadTreeView. Here is a snippet of it in my XAML: <telerik:RadTreeView IsExpandOnSingleClickEnabled="True"

Mark a field “Read Only” with Data Annotations

南楼画角 提交于 2019-12-22 03:47:04
问题 I am trying to make the ID field read only. It is an Identity field in the DB so the user will not be setting it. However they would like to see it. What am I missing as the below, when assigned to a DataForm still allows that value to be Edited. public class StatusChoice : BindableBase { private int id; [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Editable(false,AllowInitialValue = false)] public int ID { get { return id; } set { id = value; OnPropertyChanged(); } } } 回答1:

Binding a Telerik RadTreeView client side

会有一股神秘感。 提交于 2019-12-21 20:15:15
问题 I have a javascript array of objects that I would like to use to populate a RadTreeView. I can't figure out how to accomplish this from the client side other than manually writing my own binding method for my collection of objects. Each object in my javascript array has Id ParentId Value Text Is there no way to automatically populate an entire tree from this javascript data structure on the client side? Do I have to do this 1-by-1? By traversing my array and recursively going down the tree? I

KendoUI integration into Durandal JS

拟墨画扇 提交于 2019-12-21 17:39:48
问题 I'm building a phonegap application and plan to use Telerik's Kendo UI framework to generate the UI. Telerik Kendo UI already has an MVVM implementation and I'd like to use that and not include Knockout JS. Is this something that is supported, or is Durandal JS deeply integrated with Knockout? 回答1: Roger Gullhaug has written a blog post, detailing how Durandal can be used together with Kendo UI's data binding: Using Durandal and KendoUI together Also the official Durandal documentation

Compile Error CS0433 on pre-compiled ASP.NET 2.0 site

杀马特。学长 韩版系。学妹 提交于 2019-12-21 09:34:14
问题 I keep getting this error ever so often when I launch the debugger to debug my site. I'm using the Telerik controls, and usually the error is in my tab strip. Here is an example of the error I'm looking at right now: Compiler Error Message: CS0433: The type 'ASP.controls_motorvehiclegeneral_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\statisticsweb\30c716d3\eebad209\App_Web_6wlqh1iy.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727