kendo-ui

Kendo Timepickerfor formatting not working

落花浮王杯 提交于 2019-12-12 04:13:39
问题 I have an MVC Kendo Timepicker for that I am using. It works fine except that I can't format the time to Military time. After I add the formatting for Military time, once I select the time the validation doesn't pass and it tells me it must be a date. Is there a way to format the TimePickerFor to allow military time? @using Kendo.Mvc.UI @model DateTime? @(Html.Kendo().TimePickerFor(m=>m) .Value(@Model) .Min("05:00") .Max("00:00") .Format("{0:HHmm}") ) Update: This doesn't work with format

Kendo grid popup with Yes/No combo for boolean

限于喜欢 提交于 2019-12-12 03:46:06
问题 This is driving me nuts. I am trying to do something that should be a no-brainer, but having loads of issues. I have two boolean fields that I want to bind to a combo box with Yes and No in it. I want to use the Kendo UI Combobox and I am doing all this in a popup template for a Kendo UI grid. In the code snippet bellow I have two selects (at the end of the template), one with the data-role="dropdownlist" set, the other without. The first select, ReceiveEmailMontlyFlyer, will select the

Passing data in view model to controller via kendo grid

旧巷老猫 提交于 2019-12-12 03:45:43
问题 So far, I'm just trying to instantiate my kendogrid and passing through values from my view model. I got the following piece of code from Telerik's documentation for vb.net. The thing is, an exception is thrown from .Grid -> "Type parameter for public overridable overloads function grid(of T as a class) as a gridbuilder(of t) cannot be inferred" Html.Kendo().Grid().Name("kendogrid") I'm not sure what this error means and I don't know how to go about fixing it. View $(document).ready(function

How can I detect resizeStop event on Kendo UI Window?

跟風遠走 提交于 2019-12-12 03:38:40
问题 The title explains it all... I need to perform a custom action when I know a user has finished resizing, but from what I can find in the Kendo UI documentation there is no event for this accessible to me other that 'resize' which I cannot use as is. Perhaps i just missed the event? if not: Is there a way to use the 'resize' event to determine that a user has stopped resizing? 回答1: So here's my answer thus far: Mine differs slightly due to architectural needs, but here's a general solution var

How to bind foreign key kendo ui dropdownlist (with angular)

人走茶凉 提交于 2019-12-12 03:34:41
问题 I am working with kendo UI and angular grid application. My grid is populated from JSON data (separate file) and I am use angular service: My JSON data: [ { "Id": 1, "AccountNo": "10236", "PostingDate": "20.01.2015", "MaturityDate": "24.01.2015", "Description": "description1", "DocumentTypeId": 1 }, { "Id": 2, "AccountNo": "10648", "PostingDate": "26.01.2015", "MaturityDate": "28.01.2015", "Description": "description2", "DocumentTypeId": 2 }, { "Id": 3, "AccountNo": "10700", "PostingDate":

kendo treeview datasource not showing children items in javascript debug unless node is expanded

你离开我真会死。 提交于 2019-12-12 03:26:54
问题 I have a Kendo TreeView in which the parent nodes and children are all gotten at the same time. Previously I was having the separate calls of which unless a Parent node was expanded, it did not call a query and pull that data into the parent node as children Now that I have my data pulled all at once, I want to be able to do all sorts of CRUD operation in which if a node is created, deleted, sort order changed, then on Button click I want to send in all the data. PROBLEM : I noticed that in

Kendo UI Dropdownlist

此生再无相见时 提交于 2019-12-12 03:26:40
问题 Responseenter image description hereI have a kendo grid displaying ID,NID,SID(Student table) and some other fields.Now when i want to add new Student the NID field must me a dropdownlist populating the values from the database. How can we do this. What should be in the data-source . I wrote a query to get the NID. but how would i use it. Or is this wrong Thanks <div> <table> <tr> <td> <div> <label for="ID">ID</label> </div> <div data-container-for="data.ID"> <input id="id" data-bind="value:

Why Kendo DropDownList can not be initialized by json result from controller action

笑着哭i 提交于 2019-12-12 03:25:07
问题 I have a Kendo DropDownlist as follow <%= Html.Kendo().DropDownList() .Name("AssignDisciplineId") .DataSource(dataSource => { dataSource.Read(read => { read.Action("DisciplinesBySportAjax","Shared").Data("onDisciplinesBySportData"); }); }) .Events(events => events .Change("onAssignDisciplineComboChanged") ) .HtmlAttributes(new { style = "font-size:8pt;" }) %> function onDisciplinesBySportData(e) { var sportId = $('#AssignSportsId').data('kendoDropDownList').value(); return { sportId: sportId

Kendo-schedule setting weekstart to monday and setting culture

牧云@^-^@ 提交于 2019-12-12 03:15:44
问题 I am evaluating kendo-ui and i would like to configure the views views: [{type: "week", ...}, { type: "workweek", ...}, { type: "month", ...}] of kendo-ui scheduler to always start with monday. I found Q: Setting first day of week to Monday but is has no accepted answers and offered solutions did not work for me. Trying to set workWeekStart So after trying several things out i ended up with: $("#scheduler2").kendoScheduler({ date: new Date("2014/12/1"), allDayEventTemplate: $("#event-template

Kendo PDF export issue for RTL languages

Deadly 提交于 2019-12-12 03:13:58
问题 I want to export PDF from Kendo Grid Using ASP.MVC, that's work fine but when the texts are in RTL mode(ex Arabic/Persian) its not OK! : As you seen in the picture, the orange buttons must show "ویرایش" but it Won't! 回答1: RTL content is not supported for PDF exporting: http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#known-limitations 来源: https://stackoverflow.com/questions/39488786/kendo-pdf-export-issue-for-rtl-languages