kendo-ui

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);

Kendo sortable : cannot edit text input inside of the sortable table

六眼飞鱼酱① 提交于 2019-12-12 12:22:51
问题 I have following sortable table with sortable rows by using: http://demos.telerik.com/kendo-ui/sortable/events <tbody class="playlist" kendo-sortable k-placeholder="placeholder" k-hint="hint"> <!-- IF NOTHING IS FOUND--> <tr ng-if="projectDetail.projectOrderViewConfiguration.projectEntries.length == 0"> <td colspan="9"><h1>{{ 'ADD_SOME_ITEMS_FROM_LEFT_COLUMN' | translate }}</h1></td> </tr> <!-- ELSE WRITEOUT--> <tr ng-repeat="projectEntry in projectDetail.projectOrderViewConfiguration

Kendo toolbar AddNew button doesn't work when the grid is filtered

一曲冷凌霜 提交于 2019-12-12 11:44:35
问题 I have a small Kendo Grid, set up as below. In an inccredibly mysterious fashion, the Controller action for "Add New", i.e. BatchCreate is only invoked if when you click another command button after clicking "Add New". E.g. a) Click "Add New", nothing at all happens. b) Reload the page, and click "Add New", and have nothing happen, then click "Save Changes", then the BatchCreate method is finally invoked. My grid looks like this, copied nearly straight from an example of theirs: @(Html.Kendo(

Binding checkboxes in treeview with checkboxes that uses remote datasource

社会主义新天地 提交于 2019-12-12 11:40:59
问题 Let me layout a situation here. I have a situation where I need to show several check boxes on a form that are hierarchical by nature in terms that some of them belong to one category and other belong to a second and so on. My first idea was to use KendoUI treeview with check boxes. I have several questions in relations to this: obviously there will be a situation where on a form load some check boxes need to be checked because they are coming like that from data source. When I define new

How to order a Kendo Grid checkbox column filter when multi and columnMenu are both true?

我的未来我决定 提交于 2019-12-12 11:24:17
问题 Using a Kendo UI grid, you can set the column as "filterable: { multi: true}", which generates a nice checkbox list in the filter instead of the default text box and equality operator template. The problem, is that by default the items in the checkbox list are ordered with the dataset, which itself is probably ordered by some other field. Kendo docs explains how to filter a column when the "filterable: { multi: true}", but it only works when columnMenu is false. Column menu is another option

How to set the height of KendoUI Grid with it's ASP MVC Complete Wrapper

*爱你&永不变心* 提交于 2019-12-12 11:15:09
问题 I'm using KendoUI Grid with its ASP MVC Complete Wrapper library and I'm having problem setting the height of my grid in the razor code. I tried setting the HTMLAttribute but doesn't seems to work. @(Html.Kendo().Grid<SoftInn.Data.Country>() .Name("grid-countries") .DataSource(datasource => datasource.Ajax() .Model(model => model.Id(record => record.Id)) .Create(create => create.Action("Add", "Country")) .Read(read => read.Action("GetAll", "Country")) .Update(update => update.Action("Update",

how do I make selectable or not selectable a kendo grid by a button

喜你入骨 提交于 2019-12-12 11:11:24
问题 I have a grid, with the selection mode enabled, in the grid definition selectable: true I need to make the grid not selectable, by a button. I tried this, but it isn't working: $("#disableKendoGrid").click(function () { var grid = $("#myGrid").data("kendoGrid"); grid.options.selectable = false; grid.refresh(); }); 回答1: http://jsfiddle.net/Sbb5Z/585/ Just toggleClass what make table selectable : $('#bouton').on('click',function(){ $('table').toggleClass('k-selectable'); }); 来源: https:/

Re-size the Kendo chart while Minimize the window of browser?

别说谁变了你拦得住时间么 提交于 2019-12-12 11:05:50
问题 In our team project we are using the KendoUI controls here issue while minimize the window chart size not decreasing.How to increase/decrease the size of chart while maximize/minimize the window of browser.? 回答1: Try this works to me: <div id="example"> <div id="chart"></div> </div> <script> // Chart Data Source var exampleData = [ { "FromDept": "ACT", "ToDept": "NSW", "Year": 2010, "Total": 101 }, { "FromDept": "ACT", "ToDept": "NSW", "Year": 2011, "Total": 1001 }, { "FromDept": "ACT",

Kendo Grid inline editing with Kendo Upload return an null result

寵の児 提交于 2019-12-12 10:57:48
问题 I had Kendo UI Grid with inline editing and one of my field ( propertyLogo ) I use kendoUpload to upload an image. With the kendoUpload function fileUploadEditor , I use saveUrl: "./image.php", and convert the image into base64 format to save into database. When I Add/Edit I manage to update all the field successfully except the propertyLogo field it return a NULL result. I do not know which part I'm doing wrong, but I'm not able to save the image into database. Here I'll provide my script.

Kendo dataSource Parameter Map

点点圈 提交于 2019-12-12 10:48:12
问题 I am new to kendo. I'm having a problem with model binding. When i debug with firebug, it shows options.models is undefined . Because of that reason the "if" condition in parrameterMap is always false and grid doesn't populate the data. But when i remove the parrameterMap part, it works. I think, it's very helpful if somebody can explain about the parameter map in kendo dataSource. Thank you. function GetDataSource() { var PrjKy = $("#cmbPrjNm").val(); if (PrjKy == "") { PrjKy = 1; } var