kendo-ui

how to sort a Kendo grid using HTML helpers?

只谈情不闲聊 提交于 2019-12-11 03:45:15
问题 I have implemented a Kendo grid using Html helpers. Everything works but the sorting, when I click the sorting arrows, it thinks and refreshes the same data. <div id="SearchResults"> @{ var grid = Html.Kendo().Grid<SearchCOESGridViewModel>(); grid.Name("COESResultGrid") .Columns(columns => { columns.Bound(s => s.COESNo).Title(@SearchCOES.COESGridHeading); columns.Bound(s => s.Postcode).Title(@SearchCOES.PostcodeGridHeading); columns.Bound(s => s.AuditAuthNo).Title(@SearchCOES

Excel export with caption before exported data

我只是一个虾纸丫 提交于 2019-12-11 03:40:46
问题 I was wondering if it's possible to include text above the exported data in an Excel file using Kendo UI? For example, I wish to include a description of the data above the actual data exported: Data selected using dates between 1 Jan 2011 to 1 Sep 2011 回答1: You could attach a handler to the excelExport event of the Grid and manually prepend the row to the exported workbook. The approach won't work if the exported file is filterable. excelExport: function(e) { e.workbook.sheets[0].rows

knockout-kendo issues binding through computed observable

偶尔善良 提交于 2019-12-11 03:36:45
问题 I am attempting to use knockout-kendo.js to declare a kendo dropdownlist control in a knockout forEach template, so that as new items are added to the knockout observable array, new kendo dropdownlists are rendered in the UI. Initially, I come to realize that I can no longer bind the dropdownlist's selected value to an entire entry object in my dropdownlist's specified 'data' array. To overcome this issue, I followed the RP Niemeyer's suggestion in the following thread: Set the binding of a

Kendo UI grid - grouped Header Columns

混江龙づ霸主 提交于 2019-12-11 03:32:52
问题 This is not related to the grouping function where you can drag things to the header and it groups the grid. I am trying to present grid columns in categories for organization in a large grid showing complex financial data for my project. I have created a very very simplified mockup of what I am trying to accomplish in google docs at this link https://docs.google.com/spreadsheets/d/11BZGrV5IE2zvh3Ya38jgCN1lgOqMFXegdwAOmv-bLZg/edit?usp=sharing The solution would need top play nice with column

Kendo UI :- Kendo Scheduler disable time slots of a single day view, other than saved event in a day

半腔热情 提交于 2019-12-11 03:32:13
问题 My question also similarly same to this Question which some one already asked in stack-overflow forum.I am doing a customization of a kendo scheduler based on our requirement,what i am trying to do is creating a scheduler which will be used by some admin and visible to get info to the normal users. Admin will scheduled an event for the particular day for particular time period, the user can able to see the scheduled events but he can't allowed to create a another event in that day. Now what

DropDownList in kendo grid control (by ClientTemplate)

為{幸葍}努か 提交于 2019-12-11 03:28:44
问题 I need to make behavor for ClientTemplate like we have for EditorTemplateName. So I want to make something like this: Template: @( Html.Kendo().DropDownListFor(m => m) .BindTo((SelectList)ViewData["ExamResults"]) .Template("#:Value# #:Text#") .DataTextField("Text") .DataValueField("Value") .Events(e => e .Change("examResultOnDropDownChange") .Open("examResultOnOpen")) ) And adding column into grid: .EditorTemplateName("ExamResultGridForeignKey") but I want to: .ClientTemplate(

Is there a way to disable a specific event in kendo ui scheduler?

左心房为你撑大大i 提交于 2019-12-11 03:12:15
问题 I am working with Kendo UI, js and the scheduler component. My question is, if there is a way to disable a specific event from scheduler. I find this, but this disables all events in scheduler. I want to disable just a specific event. The code should be something like this> function disableEvents() { var data = $("#scheduler").data("kendoScheduler").dataSource.data(); data.forEach(function(event){ if(event.ID='2') { event.disable = true; //I have tried with event.editable = true; } }); } I

Custom Sorting in KendoUI grid/datasource

强颜欢笑 提交于 2019-12-11 03:09:03
问题 I have grouped data in dataSource as: var dataSource = new kendo.data.DataSource({ transport: { read: { url: " ", } }, //and some other parameters specified // group by the "category" field group: { field: "category", aggregates: [ { field: "price", aggregate: "max" }, { field: "price", aggregate: "min" } ] } }); Now i want to sort the group according to field other than the field specified here. How this could be achieved? Or how can i disable or override the default sorting behavior of "dir

Is there a way to add a placeholder to a text field in KendoUI Grid?

我怕爱的太早我们不能终老 提交于 2019-12-11 03:07:42
问题 I tried the following to add the placeholder attribute to the input field using the following code, dataSource: { ... schema: { data: "storeEmployeeData", total: "storeEmployeeDataCount", model: { id: "ID", fields: { Id: { type: "number", editable: false, nullable: true }, FirstName: { type: "string", nullable: true, editable: true, validation: { required: false } }, MiddleName: { type: "string", nullable: true, editable: true, validation: { required: false } }, LastName: { type: "string",

How do I get KendoUI Validator to ignore hidden form elements?

元气小坏坏 提交于 2019-12-11 02:57:28
问题 I am attempting to use KendoUI Validator with an ASP.NET WebForms project. I have a simple page, that has a number of inputs, and of course ASP.NET adds some hidden form elements as well. I have the following questions: Why does the KendoUI Validator not ignore hidden form fields, and how to I get it to? Why does KendoUI apply the rules to every input field, and how to do get it to ignore some fields. I want a declarative way to do this, not by adding all sorts of exceptions in my validation