kendo-grid

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:/

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

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(

Why Is `data(“kendogrid”)` Undefined?

情到浓时终转凉″ 提交于 2019-12-12 08:47:01
问题 I'm a starter in kendo.ui, I've written this code to create kendo.ui.grid @(Html.Kendo().Grid<BrandViewModel>(Model) .Name("Grid") .Columns(columns => { columns.Bound(p => p.BrandName); columns.Bound(p => p.BrandAbbr); columns.Bound(p => p.SrcImage); columns.Command(command => command.Custom("Edit").Click("editItem")); }) .DataSource(dataSource => dataSource .Ajax() .Read(read => read.Action("CustomCommand_Read", "Brand")) .Model(model => model.Id(p => p.Id)) ) ) When the user clicks the edit

Datetime filter in kendo grid

余生颓废 提交于 2019-12-12 08:37:42
问题 My code is in C# .NET I am using Kendo Grid version 2013.2.716.340 and server binding to show data in grid. In Kendo UI Grid, I have a dateTime column but the column filter input only has a date picker but no time picker. Due to this if I select the option IsEqualTo and give a date then I get zero results as the time is set to 00:00:00 in the filter but the columns have some time value. I want to add time picker along with date picker. I tried to do this on my column, but it didn't work:

Can Kendo Grid be always in edit mode?

早过忘川 提交于 2019-12-12 08:26:58
问题 Does anyone know if the kendo grid could be always set to edit mode at all times? We don't want the user to click on a cell or a button to activate the edit mode. We want it the widgets to be displayed and available at all times. Is it possible at all? 回答1: Apart from using batch editing mode you can try setting the template of every column and binding the input elements to the data items using MVVM. $("#grid").kendoGrid({ dataSource: { schema: { model: { id: "id", fields: { id: { editable:

Kendo UI Grid select by data item

谁都会走 提交于 2019-12-12 08:15:37
问题 I have a Kendo UI Grid with a large datasource and paging. I have an event that fires where I know the underlying data item that I want to select, but am unsure on how to programatically page/select this item in the grid. If the item is not on the current grid page, I cannot use datasource.view() to poke through when the data is not on the current page. Does anyone know how I can select an item by its underlying data source object? I've got a similar situation to where i am at @: http:/

Grid Date formating in Kendo UI for Angular

前提是你 提交于 2019-12-12 07:05:55
问题 I am trying to format a datetime field in the Kendo UI for Angular Grid and have the filter and editing features work. I can use ng-template and pipe the date into the format I want but the filter and editing of the column does not work. The data is coming from a webapi service and the date is coming in the json data as 2017-9-12T00:00:00 回答1: Data needs to be mapped such that dates are parsed to actual JavaScript Date objects before data is bound to the Grid, so that they can be further

How to use post(update) of data having child objects in them

↘锁芯ラ 提交于 2019-12-12 06:09:00
问题 My data looks something like this. "Name":"name16", "Description":"Sampledatatest", "Remarks":"testat759", "ApprovalStatus":"Waiting", "Curve": [ {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0} ] And this is my update function function updatep(e) { var Data = { PId: e.model.PId != "" && e.model.PId > 0 ? e.model.PId : 0, Name: e.model.Name, Description