telerik

Responsive Telerik RadHtmlChart

余生长醉 提交于 2020-01-03 07:04:09
问题 I am using Telerik RadHtml chart i need to chart should be auto size based on the screen resolution how to do it. I have tried to set width and height as Auto but this not working. my chart containing in the datalist my code block below <asp:UpdatePanel ID="pnlContainer" runat="server" UpdateMode="Conditional"> <ContentTemplate> <div id="wrapper"> <asp:DataList ID="dtlstDashboards" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" OnItemDataBound="dtlstDashboards_ItemDataBound"

Customize the data in Kendo Grid pdf export

倾然丶 夕夏残阳落幕 提交于 2020-01-02 08:18:22
问题 I am using the built in functionality of Kendo Grid to export the grid data in pdf and excel http://demos.telerik.com/kendo-ui/grid/pdf-export. It is working fine for me. I want to customize the data that is exported i.e. add some additional columns and remove some of the columns of grid. Is there any way to customize the export data using templates or some other feature. Thanks in advance. 回答1: You have two options: Define a second grid with the columns that you want to export to PDF and

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

拟墨画扇 提交于 2020-01-02 08:11:50
问题 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

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

倖福魔咒の 提交于 2020-01-02 08:11:42
问题 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

UserControl within a ControlTemplate

时光总嘲笑我的痴心妄想 提交于 2020-01-02 06:46:29
问题 I have a ControlTemplate for a Telerik Tile and I am overriding like below: <ControlTemplate TargetType="{x:Type ctrl:Tile}"> <Border> <local:UserControl> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </local:UserControl> </Border> </ControlTemplate> My user control looks like: <DockPanel> <!-- some content --> <ContentPresenter/> </DockPanel> The ControlTemplate does not display the content of the UserControl. If I change my

UserControl within a ControlTemplate

☆樱花仙子☆ 提交于 2020-01-02 06:46:22
问题 I have a ControlTemplate for a Telerik Tile and I am overriding like below: <ControlTemplate TargetType="{x:Type ctrl:Tile}"> <Border> <local:UserControl> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </local:UserControl> </Border> </ControlTemplate> My user control looks like: <DockPanel> <!-- some content --> <ContentPresenter/> </DockPanel> The ControlTemplate does not display the content of the UserControl. If I change my

Kendo UI Datasource - Filter on releated data

空扰寡人 提交于 2020-01-01 17:02:28
问题 I am having trouble filtering a kendo data source on related data (many to many). I am using ASP.NET WebAPI2 and DataSourceRequest to catch the request on the server. The data is then fetched using the .ToDataSourceResult() extension method on an IQueryable. I am aware of this article http://blogs.telerik.com/kendoui/posts/12-11-29/the_facts_on_using_kendo_ui_with_asp_net_webapi My Data is structured as follows:- Customer -> CustomerAddress -> Address Where CustomerAddress is the join table

Telerik MVC Grid with Ajax Binding using EntityObjects gets Circular References exception

三世轮回 提交于 2020-01-01 00:21:24
问题 I have been using Telerik MVC Grid for quite a while now and It is a great control, however, one annoying thing keeps showing up related to using the grid with Ajax Binding to objects created and returned from the Entity Framework. Entity objects have circular references, and when you return an IEnumerable from an Ajax callback it generates an exception from the JavascriptSerializer if there are circular references. This happens because the MVC Grid uses a JsonResult which in turn uses

JavaScript not working with RadTabStrip asp.net

这一生的挚爱 提交于 2019-12-31 07:43:08
问题 I have a javascript for a nested grid which was working fine until I decided to use RadTabStrip. The JavaScript Code: <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"> </script> <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"> </script> <script type=

Set default value of RadDatePicker to NULL when date is not set

你。 提交于 2019-12-31 07:32:02
问题 I'm binding the RadDatePicker to a viewModel dateTime property. when the property is null in database i get 01/01/0001. How to i change this behavior to just leave the date field blank.. example: In database ===> experiation_date : NULL In View(GUI) ===> experation_date : 01/01/0001 Expected Result ===> experation_date : {Blank} 回答1: Set the SelectedDate to null (and not DBNull): RadDatePicker1.SelectedDate = null; and in xaml set DateTimeWatermarkContent to the empty string: <telerik