kendo-ui

Problems with Kendo Grid Hierarchy

耗尽温柔 提交于 2019-12-10 03:14:57
问题 Can anyone please write simple steps to implement hierarchy in kendo ui grid (mvc). I have been trying their demos but cannot get it working. thanks a lottt for your help! I think I am missing something but here is what i am doing (as on http://demos.kendoui.com/web/grid/hierarchy.html) I am adding a .ClientDetailTemplateId("Grid2Template") into my existing grid. Then I am writing code for above Grid2Template. I am doing 100% of what is shown in the demo but cannot get it to work with these

Select programmatically Kendo grid row

久未见 提交于 2019-12-10 00:53:35
问题 I found posts with similar titles but I still cannot resolve my issue. Definitely I am doing something wrong. In Kendo grid configuration have some function which take context (grid) and read selected row: change: function (e) { refresh(this); } This is how I configured "change" event. In function "refresh(grid)" I am getting selected row on following way: refresh: function (grid) { var selectedRows = grid.select(); var selectedRow = grid.dataItem(selectedRows[0]); var id = selectedRow.Id; }

Using Kendo Grid in PartialView

强颜欢笑 提交于 2019-12-10 00:10:51
问题 I have two <section> in the Index view of my MVC application and I want to render two partial views in these sections. There is no problem rendering a Kendo grid to one Index. However, in order to render data on Kendo Grid, could I use the two methods returning Json in the controller as shown below. Could you give me an example how to achieve this? Controller: public ActionResult Index() { return View(); } public ActionResult Issues_Read([DataSourceRequest]DataSourceRequest request) {

Kendo DropDownList Shows DataValueField Prior to DataTextField when Loading

假如想象 提交于 2019-12-09 23:52:32
问题 The following code loads a Kendo DropDownList, but while the page renders it first shows the DataValueField prior to the DataTextField. It binds just fine to the DataTextField after a second, but I would not like to show the numeric value while it renders. Does anyone know of a way to make only the DataTextField value be shown and not the DataValueField for that first second while it renders? @(Html.Kendo().DropDownList() .Name("SomeName") .DataTextField("SomeTextField") .DataValueField(

kendo ui, angular require validation for numeric text box

本小妞迷上赌 提交于 2019-12-09 20:19:35
问题 I am trying to use a kendo numeric text box with angular validation (ng-required) however I'm not able to get it working. The ng-required attribute on this element has no effect on the form validation status. From my understanding, the reason why this doesn't work is because kendo numeric text box uses k-ng-model to store it's value, whereas the angular validation works only with ng-model. Has anyone else seen this issue, are there any workarounds? 回答1: I have found a workaround that involves

Kendo Grid model with an IEnumerable property not updating correctly after Create/Update when using AJAX binding

空扰寡人 提交于 2019-12-09 17:46:39
问题 I'm having a problem where a property of my model is not being correctly updated when sending it to my controller for an Update or Create call from a Kendo Grid. The model looks like this: public class ReleaseNotesModel { public int NoteID { get; set; } public int ReleaseID { get; set; } public List<TranslationModel> ReleaseNoteTranslations { get; set; } public ReleaseNoteType ItemType { get; set; } } public class TranslationModel { public int TranslationID { get; set; } public string

Set kendo ui dropdownlist width

余生颓废 提交于 2019-12-09 17:12:27
问题 I would like to use a kendo drop-down list, which has a fixed size since is constrained by other fields in the page, but when it shows the drop-down items of the list, the drop-down area should resize to the maximum length of the items. Sort of fixed width for the item displayed, but auto width for the drop down list. Something like |my choice | <-- fixed width displayed on the page |next choice | |previous choice | <-- dropdown area to select another item |dummy | Is this possible through

How to set Kendo UI grid column widths programmatically

可紊 提交于 2019-12-09 16:32:54
问题 I would like to set Kendo UI grid column widths programmatically. I am using the following code: function setColumnWidths(grid, options) { for (var i = 0; i < options.columns.length; i++) { grid.columns[i].width = options.columns[i].width; } } When debugging in chrome after the statements executed, grid.columns[i].width seems to be appropriately set to the new value, however nothing changes in the GUI, the column widths remain the same. What am I missing? 回答1: You need to change grid's width

Kendo Grid - its own Loading indicator

百般思念 提交于 2019-12-09 15:00:00
问题 Kendo grid provides its own Loading indicator automatically when the grid is loaded, paging, sorting. It is working fine. But I don't want this built-in loading indicator to be shown/hidden. How can I disable this feature? Please advise me. Thanks, Vinoth 回答1: Simple, just hide it with CSS. Your selector will need to be more specific than the built-in Kendo classes. You can use the Grid's ID for that. #grid .k-loading-image { background-image: none; } If you want to remove the loading mask

Kendo Grid does not update the grid with newly created id after creation

依然范特西╮ 提交于 2019-12-09 14:59:22
问题 I am trying to build a very simple Kendo CRUD grid with a table that has only two columns: ID and Name. I have configured the grid with serverside pagination and serverside filtering. Everything seems to function as expected but after the new record is created, the grid shows the new record but without the ID field. On creation, the request has ID null but I am sending the value of id and the full object after creation. In example grids, the grid is updated with new values. What do I need to