kendo-ui

KendoUI DatePicker validation when multiple date fields are on a page

烈酒焚心 提交于 2019-12-25 03:08:36
问题 I'm looking to validate date fields on a page, which is simple (see this JSBin). BUT, when a page has multiple date fields on a page things start to get wacky... See this JSBin and play around with invalid dates. The invalid message doesn't know which input to bind to, causing error messages on the wrong inputs. Is there a way to trigger the correct input field? 回答1: Instead of defining a validator for the form, define a validator for each date as actually you want to validate the fields and

Building the series of a kendo chart by looping through the json data?

女生的网名这么多〃 提交于 2019-12-25 02:42:55
问题 I am having some difficulty figuring out how to solve this problem. Basically I have some JSON returned that looks like this: { "pie": { "slice": [ { "-ch": "1", "-val": "0.0797435897435897" }, { "-ch": "2", "-val": "0.00743589743589744" }, { "-ch": "3", "-val": "0.247435897435897" }, { "-ch": "4", "-val": "0.497179487179487" }, { "-ch": "5", "-val": "0.168205128205128" } ] } } I am getting this data from the controller to the javascript just fine. However, I want to bind the data to a pie

kendo upload image file dimension validation

对着背影说爱祢 提交于 2019-12-25 02:29:57
问题 here is my problem i have been using ken do-control upload control to upload my images and the real problem is i want to set validation that user should upload image in 35 mm*45 mm.and in ken do upload events i have given a function Events(events => .Select("onImageSelect") and in function function onImageSelect(e) { if (e.files[0].width == 35||e.files[0].height == 45) { return true; } but i am getting width and height undefined 来源: https://stackoverflow.com/questions/24076714/kendo-upload

Custom Filter in kendo grid passing null values when usign serevr side filtering

核能气质少年 提交于 2019-12-25 02:06:52
问题 I am using kendo Grid Server side filtering.All columns are working fine,I have a columns named purchase date.I have used here custom filtering using Date Picker as shown below.But while filtering value of datePicker in not passing to server side..Please suggest field: "purchase_date", width: "120px", title: "Purchase Date", template: '#= kendo.toString(purchase_date, "MM-dd-yyyy") #', filterable: { ui: function (element) { element.kendoDatePicker(); // initialize a Kendo UI DateTimePicker },

MVC validation regex attribute works in C# but not JavaScript

試著忘記壹切 提交于 2019-12-25 02:06:25
问题 I'm attempting to do validation on form fields via MVCs regular expression attributes. But it seems that no matter what regular expression I use, the validation only works on the server side, but not in the browser. The code I am using for the validation is: [DisplayName("Email Address")] [Required] [RegularExpression(@"^[a-zA-Z0-9\.-]*@[a-zA-Z0-9\.]*\.[a-zA-Z\.]{2,6}$", ErrorMessage = "Valid email required.")] public string emailAddress { get; set; } The regular expression will fail

Kendo UI Mobile List View example not working with my code

穿精又带淫゛_ 提交于 2019-12-25 02:05:57
问题 Background: With some help (@korchev) I was able to figure out how to use JSONP to bind data to a template. (see this and this question). However, I wanted to be able to make the data displayed in a kendo UI Mobile List view as mentioned in the Kendo Docs. Unfortunately, the mobile-list view example, uses arrays of data coded in the html which is unlike jsonp. Also, I notice that the official mobile list-view example leaves this out : <script type="text/x-kendo-template" id="template"> . And

How to add closeable text tags to Textarea Kendo | jQuery

让人想犯罪 __ 提交于 2019-12-25 01:53:33
问题 I need to use Text area like this image. I should able to click Text A , Text B , Text C , Text D buttons and, once I click any of this button it should add to the Text area and also able remove added text field from the Text area. Can I do it using jQuery UI , jQuery or JavaScript . Kendo UI is also okay. but I'm unable to found my requirement support Kendo component to do this. I researched and found this http://skfox.com/jqExamples/insertAtCaret.html , but it's not support added text

filterable is not working for grid if i am apply if else condition in grid

与世无争的帅哥 提交于 2019-12-25 01:14:46
问题 if we apply if else condition in Kendo grid column then filterable not working for that particular column { field: " ", title: "Compliance Status", width: "180px", template: "# if(WithinDueDt == 'Y'){# Completed on time #} else if(Ongoing == 'Y'){# Ongoing #} else if(CompletedbutDelayed == 'Y'){# Completed but Delayed #} else if(OngoingbutDelayed == 'Y'){# Ongoing but Delayed #} #" } 回答1: Kendo Grid sorting and filtering functionality works based on the field value not based on the template

Changing the color of onclick selected text in kendo angular grid

柔情痞子 提交于 2019-12-25 00:48:59
问题 Can someone help me in changing the color of onclick selected text in kendo angular grids. 回答1: ::selection is the property you are looking for to change the selected text color (see this answer for more details). To get this to apply to your kendo grid, use the following CSS: .k-grid ::selection { background-color: #3399FF; color: #fff; } If you are still having trouble, make sure you are applying your CSS to the global scope. Because of style encapsulation, this is the easiest way to affect

Kendo UI Grid sortable (and other properties) not working

余生颓废 提交于 2019-12-25 00:20:04
问题 I'm trying to configure a Kendo grid and I'm having issues when trying to add properties such as sorting, grouping, etc. The grid works until I add the property, then it doesn't display any of the data. I have looked at the documentation on Kendo's site and it looks as if I have everything the same as theirs but obviously I'm nissing something. Here is the View: @model ExampleKendoUI.Models.HeaderVm @{ ViewBag.Title = "Index"; } <h2>Index</h2> <div>@Model.Name</div> @section scripts { <script