kendo-grid

KendoUI Grid Ajax Binding Parameters For Select

瘦欲@ 提交于 2019-12-20 20:32:28
问题 I have a basic KendoUI Grid for my ASP.NET MVC app which uses ajax binding for the read. I'd like to enhance this so that a Form above the grid is used to help select data that should be displayed in the grid. This is a standard search form with basic fields like First Name, Last Name, Date of Birth, Customer Source, etc. with a search button. When the search button is pressed, I want to force the grid to go get the data that meets the criteria from the controller by passing in the Search

Kendo UI - Grid pagination (server side)

纵饮孤独 提交于 2019-12-20 10:06:15
问题 I'm trying to use Kendo-UI grid with pagination. everything seems to work expect for the Total attribute, although I set it to 100 it shows 1 - 10 of 10 items which the page size i'm setting. Anyone had better success with this? I searched Kendo docs and forums with no success. @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { foreach (System.Data.DataColumn column in Model.Columns) { columns.Bound(column.ColumnName); } }) .Pageable() .Sortable() .Scrollable() .Filterable()

ag-grid vs slick-grid vs angular-grid which is better? [closed]

雨燕双飞 提交于 2019-12-20 08:34:27
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . Recently we thought to change our current grid tool. Currently we're using kendo-ui for grid and all. After searching we came with 3 results. But, still we're not sure which is better and why in future run. While using kendo we missed having control over it. It would be a

Handling events from a Kendo MVC Grid's PopUp editor window

大城市里の小女人 提交于 2019-12-20 05:35:36
问题 I have a Kendo MVC grid that I am creating with the Html.Kendo().Grid helper. When the PopUp editor window opens, I want to catch the event and run a bit of javascript. When I configure a normal kendo window with .Events, the events fire properly and my function runs. However, when I code the .Events property on the .Editable.Window of the grid, the events do not fire. @(Html.Kendo().Grid<FooRecord>() .Name("cFooGrid") .Columns(c => { c.Bound(f => f.Foo); c.Bound(f => f.Bar); c.Bound(f => f

Unable to insert stylesheet/script into window.open

怎甘沉沦 提交于 2019-12-19 21:59:11
问题 I have been fighting this issue for quite some time now, and have been (still) unable to print my div with its styling. Currently, my script is: $('#printMeButton').click(function () { //alert("a"); var data = document.getElementById('thisPrintableTable').outerHTML; var mywindow = window.open('', data); mywindow.document.write('<html><head><title>Print Me!!!</title>'); // mywindow.document.write('<link rel="stylesheet" type="text/css" href="Site.css" media="screen">'); mywindow.document.write

Add New Record button not working in kendo hierarchical grid

ε祈祈猫儿з 提交于 2019-12-19 09:08:23
问题 I'm trying to add new row to the detail grid of the kendo hierarchical grid, but the Add new record button not working. However if I omit the filter option in detail grid definition, then the button works, but with filtering off, I can't separate the child rows according to the master row. I'm adding an image to describe the problem. Here is my code for the hierarchical grid: var element = $("#grid").kendoGrid({ dataSource: { type: "JSON", transport: { read: { url: "/Home/Read", type: "GET" }

Kendo Grid Hiding/Showing Delete button

筅森魡賤 提交于 2019-12-19 07:48:10
问题 I am new on Kendo MVC components as well as on jQuery. I am building Kendo Grid.I would like to hide destroy(delete) command on page load on Kendo grid.After that when I click to button on same page, it should be visible. kendo grid: @(Html.Kendo().Grid<Model>() .Name("grid") .Columns(columns => { columns.Bound(product => product.DESCRIPTION).Title("Description"); columns.Bound(product => product.CODE).Title("Description"); columns.Command(commands => { commands.Destroy().HtmlAttributes(new {

Kendo Grid Hiding/Showing Delete button

百般思念 提交于 2019-12-19 07:48:10
问题 I am new on Kendo MVC components as well as on jQuery. I am building Kendo Grid.I would like to hide destroy(delete) command on page load on Kendo grid.After that when I click to button on same page, it should be visible. kendo grid: @(Html.Kendo().Grid<Model>() .Name("grid") .Columns(columns => { columns.Bound(product => product.DESCRIPTION).Title("Description"); columns.Bound(product => product.CODE).Title("Description"); columns.Command(commands => { commands.Destroy().HtmlAttributes(new {

Exporting all data from Kendo Grid datasource

谁说胖子不能爱 提交于 2019-12-18 13:35:16
问题 I followed that tutorial about exporting Kendo Grid Data : http://www.kendoui.com/blogs/teamblog/posts/13-03-12/exporting_the_kendo_ui_grid_data_to_excel.aspx Now I´m trying to export all data (not only the showed page) ... How can I do that? I tried change the pagezise before get the data: grid.dataSource.pageSize(grid.dataSource.total()); But with that my actual grid refresh with new pageSize. Is that a way to query kendo datasource without refresh the grid? Thanks 回答1: A better solution is

How to change Kendo UI grid page index programmatically?

旧街凉风 提交于 2019-12-18 12:45:51
问题 I have a kendo ui grid. Let's say that the JS variable pointing to the grid is called grid . How can I go to page 3 programmatically? Thanks. 回答1: You might to use: grid.dataSource.query({ page: 3, pageSize: 20 }); Documentation in here. or: grid.dataSource.page(3); Documentation in here 回答2: Answer is just set it pate: 1 when datasource created var dataSource = new kendo.data.DataSource({ data: [ { name: "Tea", category: "Beverages" }, { name: "Coffee", category: "Beverages" }, { name: "Ham"