kendo-asp.net-mvc

kendo window with minimize and maximize

落爺英雄遲暮 提交于 2019-12-13 07:10:39
问题 I have two kendo windows one below the other in the page with minimize and maximize options. When I close or minimize the first window the window below should come up. Could you please help me achieve this? <div id="dialog"></div> <div id="dialog1"></div> <script> $("#dialog").kendoWindow({ animation: { close: false } }); $("#dialog1").kendoWindow({ animation: { close: false } }); </script> 回答1: Try: <script> $("#dialog").kendoWindow({ animation: { close: false }, close: function(e) { var d1

how to add a new row with pre defined data in kendo grid?

旧街凉风 提交于 2019-12-13 06:26:48
问题 I'm trying to add a new row to a kendo grid with selected data from another kendo grid. Its showing a blank row but no data. Here is my code: var PunishmentGridDataSource = new kendo.data.DataSource({ schema: { model: { id: "DICP_ACTN_TYPE_CODE", fields: { DICP_ACTN_TYPE_SLNO: { editable: false }, DICP_ACTN_TYPE_CODE: { editable: false }, DICP_ACTN_TYPE_NAME: { editable: false } } } }, pageSize: 5, data: [ { DICP_ACTN_TYPE_SLNO: "1", DICP_ACTN_TYPE_CODE: "1", DICP_ACTN_TYPE_NAME:"aa" }] });

Kendo Grid Column title with red asterick to indicate required field

僤鯓⒐⒋嵵緔 提交于 2019-12-13 02:57:03
问题 I am using a kendo grid with multiple columns. But i need to display few columns with red asterick to indicate required filed. Can someone help me on this. <div id="failureTypeInfoGrid" style="width:100%;overflow-x:auto;"> @(Html.Kendo().Grid(Model.lstSerialData) .Name("serialGrid") .Events(e => e.Edit("onEdit")) .Columns(columns => { columns.Bound(c => c.UnitId).Hidden(true).ClientTemplate("#= UnitId #" + "<input type='hidden' name='SerialData[#= index(data)#].UnitId' value='#= UnitId #' />"

KendoUI - How to create controls at runtime based on user input?

心不动则不痛 提交于 2019-12-13 02:06:42
问题 Is there a way to create different type of controls in a KendoUI grid column at runtime? The scenario is, I have 2 columns in my grid. The first column displays a dropdown list which has the some strings like, 'Name', 'StartDate', etc. When user selects a value from it, I want to show an appropriate control in the 2nd column. If the user picks 'StartDate', I want to show the 'DateTime' control. Can you please let me know how to do this thru ASP.Net MVC 5 wrapper? Sample Code: @(Html.Kendo()

Configure Ajax request made by Kendo to support cross domain ajax request

情到浓时终转凉″ 提交于 2019-12-13 01:43:30
问题 The basic kendo auto complete example shows a setup where matched search results are fetched through an Ajax request. The ajax loading works fine if the requested resource is on the same domain, but I was wondering if there is support for configuring the underlying ajax requests to support CORS. Is there a way to pass in Ajax options like you normally would do if you were using $.ajax({}) directly. $("#products").kendoAutoComplete({ dataTextField: "ProductName", filter: "contains", minLength:

Kendo DatePicker culture not working correctly

允我心安 提交于 2019-12-12 22:59:01
问题 I want to localize Kendo Datepicker to my culture "is-IS" but for some reason it doesn´t work correctly. This is code example: $("#RegisterDatePicker").kendoDatePicker({ start: "month", culture: "is-IS", value: new Date(), format: "dd.MMMM yyyy", events: { change: "registerDatePicker_OnChange" } }); The culture seems to revert to its default localization "en-US". I know this culture should work with Datepicker because whenever I declare the Datepicker within the Razor engine it renders

Inline editing with conditionally disabled controls

喜欢而已 提交于 2019-12-12 18:49:35
问题 I am using the Telerik Kendo UI grid. I have configured it to use grid inline editing. I have an interesting requirement. One of the columns is a checkbox and this defines whether some of the controls are editable or not. i.e when ticked columns E,F,G are read-only and others are editable. When unticked column B,C are editable and others are read-only. I have successfully implemented this but I would like to improve it. I have implemented it so that the controls are disabled. However, I would

Kendo UI Grid is not calling READ method

大兔子大兔子 提交于 2019-12-12 12:24:34
问题 As per the requirement, I am having a Kendo UI grid on my VIEW.But sadlyy, the read function is not being hit in the controller.This is annoying ,I am getting the same problem even though everyhting seems to be as per the documentation provided on http://demos.kendoui.com/web/grid/index.html. Here is my View code: @(Html.Kendo().Grid<StudentManagement_Models.Student>() .Name("studentsGrid") .Columns(columns => { columns.Bound(p => p.Id).Groupable(false); columns.Bound(p => p.FirstName);

Handle destroy event in kendo scheduler

强颜欢笑 提交于 2019-12-12 10:45:52
问题 I am using a kendo scheduler. There are events added in scheduler grid. On mouse hover of each event a small (x) comes on top right corner. i.e destroy event for that event, which when clicked shows an warning message "Are you sure you want to delete this event?" If clicked Yes it goes ahead and deletes that event. So here is my requirement. As you can see above there are 3 scheduled events in the shown week. I want that, the one circled in blue shouldn't have delete option but the one

How can I force Kendo Grid to use a numeric filter on a column

断了今生、忘了曾经 提交于 2019-12-12 09:47:41
问题 Using the following code, Kendo Grid uses the string filter interface for t.Files.Count even though the type is an int . How can I force the grid to use the numeric filter UI instead? @(Html.Kendo().Grid<GJW_Site.Web.Models.TargetsModel>() .Name("grid") .Columns(columns => { columns.Bound(t => t.ID).Width(80); columns.Bound(t => t.OrbitalPeriod); columns.Bound(t => t.Files.Count); }) .Sortable() .Filterable() .DataSource(dataSource => dataSource.Ajax() .PageSize(20) .Read(read => read.Action(