telerik

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

安稳与你 提交于 2019-12-31 07:31:32
问题 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

TabView vs SegmentedBar

守給你的承諾、 提交于 2019-12-31 04:41:06
问题 I am creating SegmentedBar in native script. I am able to create segments but I am not able to add Label to segment view. <Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded"> <StackLayout> <SegmentedBar> <SegmentedBar.items> <SegmentedBarItem title="Segment 1"> <SegmentedBarItem.view> <Label text=" I am in segment bar 1"/> </SegmentedBarItem.view> </SegmentedBarItem> <SegmentedBarItem title="Segment 2"> <SegmentedBarItem.view> <Label text=" I am in segment bar 2"/> <

Telerik + Visual Studio 2010 Toolbox = Maddening Problems

自作多情 提交于 2019-12-30 18:38:05
问题 Has anyone ever found a solution to either of these problems: When entering any design mode in Visual Studio 2010 (WPF, EDMX, Silverlight, Reporting, etc) I see a message in the status bar like Loading toolbox content from package Microsoft.VisualStudio.IDE.Toolbox.ControlInstaller.ToolboxInstallerPackage '{2C98B35-07DA-45F1-96A3-BE55D91C8D7A}'... This locks VS for about a minute everytime. Telerik toolboxes have many duplicate controls. Toolbox doesn't show any items when expanded. I think

Inline markup blocks cannot be nested. Only one level of inline markup is allowed. MVC RAZOR

拈花ヽ惹草 提交于 2019-12-30 08:14:23
问题 I one one modal window with telerik grid inside. But i need to render images in my grid so as i understand i cant use @ twice. Here is blog post about this issue Link Can someone assist me please. My Code @{ Html.Telerik().Window() .Name("images") .Title("Select an Image") .Content(@<text> @(Html.Telerik().ComboBox() .Name("AjaxComboBox66") .AutoFill(true) .SelectedIndex(0) .BindTo(new SelectList(Model.PhotoFolders, "ID", "Name")) .Filterable(filtering => filtering.FilterMode

Kendo MVC Grid: Creating a Custom command button and passing parameters

99封情书 提交于 2019-12-30 06:16:08
问题 I'm trying to create a custom command button to fire a custom delete function. I need to pass the ID of my model to my custom delete function. You'll notice that I'm trying to pass in a static '5' as a test but I would like to pass in the ID of the row. Any help would be greatly appreciated. @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Name).Width(240); columns.Bound(p => p.City).Width(170); columns.Bound(p => p.State).Width(170); columns.Command(command

How to insert drop down list box in a Telerik grid

£可爱£侵袭症+ 提交于 2019-12-29 07:19:09
问题 I have a Telerik Grid, with two columns I need to keep second column as drop-down list box with in the grid, I am using ASP.NET MVC control Can any body tell me how to do this? 回答1: You can set the template of the column to embed arbitrary HTML. If using Ajax binding - try the client template. The following online examples will be helpful: Server templates Client templates 回答2: I need to do that for my project. Here is how I did it: columns.Bound(o => o.Role).ClientTemplate( Html.Telerik()

How to close the radwindow on serverside and refresh the parent page

泪湿孤枕 提交于 2019-12-29 06:23:51
问题 I want to close the RadWindow and refresh the parent : how to do this server side : I have the following case: Two pages say : parent.aspx : <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState ="false"> </telerik:RadWindowManager> and parent.cs protected void OpenNewWindow(string url, int width, int height,int mode) { RadWindow newWindow = new RadWindow(); newWindow.NavigateUrl = url; newWindow.VisibleOnPageLoad = true; newWindow.KeepInScreenBounds = true; if

Returning iTextSharp PDF as memorystream causes StreamNotSupported

我们两清 提交于 2019-12-28 02:16:55
问题 I'm creating a PDF file using the PdfStamper in iTextSharp and return the PDF as a memorystream object to the calling function, that is then used to display the PDF in Teleriks PDF Viewer Component for WinForms. That's the objective. Right now, creating the PDF works as it should, and it returns the data to the Calling function, and in the Calling function, should I write the memorystream contents to a file stream and then open it in Adobe Reader Everything looks just fine. However, if I

Javascript local database binding of the Kendo UI Scheduler

送分小仙女□ 提交于 2019-12-26 03:10:10
问题 I'm looking for a way to connect my open source Kendo UI Scheduler to a local database using javascript. I've already started but got stuck because I can't find any helpful documentation on how to do this using javascript. $(function () { $('#scheduler').kendoScheduler({ views: [{type:"day", selected:true}], dataSource: { transport: { read: { url: "@Url.Action("GetTasks","Schedules")", dataType: "json" }, update: { url: "@Url.Action("UpdateTask","Schedules")", dataType: "json" }, create: {

Javascript local database binding of the Kendo UI Scheduler

本小妞迷上赌 提交于 2019-12-26 03:10:06
问题 I'm looking for a way to connect my open source Kendo UI Scheduler to a local database using javascript. I've already started but got stuck because I can't find any helpful documentation on how to do this using javascript. $(function () { $('#scheduler').kendoScheduler({ views: [{type:"day", selected:true}], dataSource: { transport: { read: { url: "@Url.Action("GetTasks","Schedules")", dataType: "json" }, update: { url: "@Url.Action("UpdateTask","Schedules")", dataType: "json" }, create: {