telerik

sitefinity Validation data view

∥☆過路亽.° 提交于 2021-01-24 10:38:07
问题 I am building this MVC form not using the sitefinity form control. I wanted to add validate to the First Name TextBox. In the model I have [Required] attribute on the property in the view model used by the view. I only get the red text The FirstName field is required. but I wanted the textbox and label to be red as well. Is there another class I need to use for the TextBox or anything with Bootstrap ? View @Html.Script(ScriptRef.JQueryValidate, "top", true) @{ HtmlHelper

sitefinity Validation data view

社会主义新天地 提交于 2021-01-24 10:35:08
问题 I am building this MVC form not using the sitefinity form control. I wanted to add validate to the First Name TextBox. In the model I have [Required] attribute on the property in the view model used by the view. I only get the red text The FirstName field is required. but I wanted the textbox and label to be red as well. Is there another class I need to use for the TextBox or anything with Bootstrap ? View @Html.Script(ScriptRef.JQueryValidate, "top", true) @{ HtmlHelper

Error : Package restore failed

风流意气都作罢 提交于 2021-01-02 07:52:22
问题 I am trying to add controller to my solution in Asp.net Core project. While doing so i am getting this error. I am getting the same message for adding minimal dependencies and full dependencies for controller. Please help me with this issue. Thanks in advance. 回答1: I also had this issue. "Add Controller>API Controller with actions, using Entity Framework" would give the "Package Restore Failed" error. As Anish stated, it seems to be due to package versions being mis-aligned. I was able to

Unauthenticated users cannot access static files in ASP.NET MVC regardless of location elements

给你一囗甜甜゛ 提交于 2020-08-27 08:13:08
问题 I know this question has been asked several times on SO, but none of those answers have worked in my situation. I have an ASP.NET MVC2 app that uses Forms authentication on my local IIS 7.5(7600.16385) on an AppPool running in integrated mode. Interestingly, this does not happen when using the development web server that comes with VS 2010. My web.config file contains no <authorization /> and no <location /> elements. When I hit the home page, I get everything in the logon view except for the

Angular Kendo Grid: Save Sorted Filtered Grid in a Variable

帅比萌擦擦* 提交于 2020-07-13 07:17:37
问题 We are making a Grid which is: Sortable, Selectable, Filterable, and Column selector, etc. What is the property in API for Kendo Angular Grid which does this? We are trying to store this filtered/sorted grid data into a variable, different from the Original Grid data. How can this be done? Currently looking through resource; https://www.telerik.com/kendo-angular-ui/components/grid/api/ <kendo-grid [data]="documentPropertyGridData" [resizable]="true" [reorderable]="true" [sortable]="true" >

Kendo Upload - CSRF Token with kendo ui jquery

家住魔仙堡 提交于 2020-07-09 17:57:12
问题 how to add CSRF Token in kendoUpload $("#image").kendoUpload({ async: { saveUrl: "http://url", } }); 回答1: <meta name="_token" content="{!! csrf_token() !!}" /> <input type="file" name="files" id="photos" /> var token = $('meta[name="_token"]').attr('content'); $("#photos").kendoUpload({ async: { saveUrl: "http://url/save" }, upload: onUpload }); function onUpload(e) { var xhr = e.XMLHttpRequest; if (xhr) { xhr.addEventListener("readystatechange", function (e) { if (xhr.readyState == 1 /*

Icons not showing in my KendoUI for JQuery Grid

安稳与你 提交于 2020-06-27 15:50:11
问题 I have a KendoUI for JQuery grid, and as you can see in the screenshot below, all of the paging icons are not showing. I have added the necessary stylesheet references. And I have made sure that the stylesheets themselves and the .PNG files referenced in them are in my solution. When I run the solution, I use Google Chrome. At this point, I am at a loss as to what I'm doing wrong. If anyone knows anything, please help. 回答1: I do not see the required fonts folder: \kendo\fonts \kendo\fonts

Making a ToolTip not visible

孤街醉人 提交于 2020-05-30 08:01:52
问题 There is an icon that I want to always be visible, but I want the tooltip to be conditionally visible. Here is the code that I currently have: <TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" FontSize="15" Visibility="{Binding IsConnected, Converter={StaticResource BooleanToVisibilityConverter}}"> <fa:ImageAwesome Icon="{Binding Path=BatteryLevelIcon, UpdateSourceTrigger=PropertyChanged}" Height="20" Width="20" Foreground="Green" Visibility="{Binding IsConnected, Converter=

一起了解 .Net Foundation 项目 No.20

被刻印的时光 ゝ 提交于 2020-03-18 22:40:54
3 月,跳不动了?>>> .Net 基金会中包含有很多优秀的项目,今天就和笔者一起了解一下其中的一些优秀作品吧。 中文介绍 中文介绍内容翻译自英文介绍,主要采用意译、如与原文存在出入,请以原文为准。 System.Drawing (Mono) System.Drawing 是一个跨平台的开源图形实现库,作为微软的 System.Drawing 名称空间下的绘图内容的可选方案。 项目详情 官方网站 项目源码 项目许可证: MIT 相关链接 参与贡献 开发文档 参与讨论 笔者简评 其属于 Mono 的一部分,笔者虽然无法理解为什么是单独的一个项目,但确真实存在。 详细可以参照 Mono 项目本身 。 英文介绍 System.Drawing (Mono) System.Drawing is a cross platform open source implementation of Microsoft’s System.Drawing namespace used to draw. Project Details Project Info Site Project Code Site Project License Type: MIT Quicklinks Contribute Documentation Discussions 以上《英文介绍》摘录自 .NET Foundation 的