telerik

Why can't I bind the WPFToolkit DataGrid ItemSource to DataTable?

不打扰是莪最后的温柔 提交于 2019-12-21 04:27:11
问题 In a Telerik control, I was able to bind a DataTable directly to the ItemSource , but when I switched to the Codeplex WPFToolkit Datagrid : <dg:DataGrid Name="theGrid"/> --- theGrid.ItemsSource = dt; I get this error: Cannot implicitly convert type 'System.Data.DataTable' to 'System.Collections.IEnumerable'. How can I bind the DataTable to the WPFToolkit DataGrid ? 回答1: You'll have to project your datatable into something that implements IEnumerable as that is waht the DataGrid expects. The

KendoUI Grid Ajax Binding Parameters For Select

瘦欲@ 提交于 2019-12-20 20:32:28
问题 I have a basic KendoUI Grid for my ASP.NET MVC app which uses ajax binding for the read. I'd like to enhance this so that a Form above the grid is used to help select data that should be displayed in the grid. This is a standard search form with basic fields like First Name, Last Name, Date of Birth, Customer Source, etc. with a search button. When the search button is pressed, I want to force the grid to go get the data that meets the criteria from the controller by passing in the Search

How do I programatically put telerik rad grid in “add new” mode on page load

不羁岁月 提交于 2019-12-20 20:29:24
问题 Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button) 回答1: Found the answer while back.... updating this in case others

How do I programatically put telerik rad grid in “add new” mode on page load

心已入冬 提交于 2019-12-20 20:28:08
问题 Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button) 回答1: Found the answer while back.... updating this in case others

ASP.NET AJAX UpdatePanel & Dynamic HTML Insertion Issue (Telerik)

走远了吗. 提交于 2019-12-20 07:49:13
问题 Ok so I have a problem. I am currently working on a project using the Telerik framework for ASP.NET AJAX, although that shouldnt matter much as I am bypassing Telerik completely (almost) for this portion of the work. I'm putting together a facebook-like chat program into our company's CRM system and, while all has gone well up to this point, I've hit a roadblock. The problem is when I try to "create a new chatbox". I'm using the asp control UpdatePanel in conjunction with a jQuery $.ajax call

how to use webmethod with telerik batch edit grid

白昼怎懂夜的黑 提交于 2019-12-20 07:31:28
问题 Work on Asp.net vs2012 C# telerik:RadGrid batch edit,I put save button outside from the grid.Under the save button want to call webmethod to save all changes on my db. Sample will be preferable,how to use webmethod with batch edit grid. 回答1: Use RadClientDataSource to bind to your service: http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/client-data-source-binding/defaultcs.aspx 来源: https://stackoverflow.com/questions/28870389/how-to-use-webmethod-with-telerik-batch

Best practice for panning/zooming a user control?

主宰稳场 提交于 2019-12-20 05:41:42
问题 We currently have a user control which displays a dynamic matrix of other user controls. Since it's dynamic, the view can become large, requiring the user to scroll up/down & left/right in the browser to view everything. I would like to give the users one view of the user control with the ability to pan & zoom on it, much like the feel of this Telerik control. We own the Telerik controls and I've tried to use the Map control for our purpose, but it doesn't seem like that is going to be a good

How to give a color to the Column Header in Telerik RadGrid

旧时模样 提交于 2019-12-20 03:07:14
问题 I have created a telerik RadGrid in asp .net. My requirement is to give my own color to Column header. How can we achieve this...? Below is the code structure I'm using. <Telerik:RadGrid ID="RadGrid2" runat="server"> <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="Orders" Width="100%"> <DetailTables> <telerik:GridTableView DataKeyNames="OrderID" Name="OrderDetails" Width="100%"> <Columns

“Resource” contains no Definition for “Animation”

女生的网名这么多〃 提交于 2019-12-19 18:24:49
问题 So i'm currently in the process of evaluating trials of Xamarin.Forms and UI for XamarinForms from telerik. Unfortunately once i link the libraries to the telerik dll's i'm getting a messed up Resource.Designer.cs file. I'm getting 5000 errors of "Resource" contains no Definition for "Animation". (also Resource.Drawable, Resource.Style, Styleable,...) from code like this: public static void UpdateIdValues() { global::Telerik.XamarinForms.ChartRenderer.Android.Resource.Animation.abc_fade_in =

Add New Record button not working in kendo hierarchical grid

ε祈祈猫儿з 提交于 2019-12-19 09:08:23
问题 I'm trying to add new row to the detail grid of the kendo hierarchical grid, but the Add new record button not working. However if I omit the filter option in detail grid definition, then the button works, but with filtering off, I can't separate the child rows according to the master row. I'm adding an image to describe the problem. Here is my code for the hierarchical grid: var element = $("#grid").kendoGrid({ dataSource: { type: "JSON", transport: { read: { url: "/Home/Read", type: "GET" }