kendo-grid

Kendo Ui Grid not rebinding after search button click

孤者浪人 提交于 2019-12-01 08:49:12
问题 I having difficulty where the Kendo Ui grid would not rebind with new result after the Search button click.Please let me know how i could achieve this. Thank you Currently the GetList will return data correctly however the KendoUi grid would not rebind with the new result. .cshtml <div id="search"> <div> <div class="searchOption"> @Html.LabelFor(model => model.HRN) @Html.EditorFor(model => model.HRN) </div> </div> <div> <div class="smallBox"> <input type="button" id="btnSearch" style="height

Customize the data in Kendo Grid pdf export

北慕城南 提交于 2019-12-01 08:40:45
I am using the built in functionality of Kendo Grid to export the grid data in pdf and excel http://demos.telerik.com/kendo-ui/grid/pdf-export . It is working fine for me. I want to customize the data that is exported i.e. add some additional columns and remove some of the columns of grid. Is there any way to customize the export data using templates or some other feature. Thanks in advance. You have two options: Define a second grid with the columns that you want to export to PDF and when asked to export actually export the second. Both grids should share the datasource so filtering, orders..

$(document).ready(function () $ is not defined [duplicate]

落爺英雄遲暮 提交于 2019-12-01 07:26:35
问题 This question already has answers here : JQuery - $ is not defined (31 answers) Closed 3 years ago . I'm working on asp.net mvc and using Kendo UI grid control for data retrieving, using these functionality for another application working fine problem not in code. All JavaScript and Kendo grid ui reference including when i run the application i face these error $(document).ready(function () $ is not defined List:178 Uncaught TypeError: $(...).kendoDatePicker is not a function multiple time.

Kendo DropDownList in Grid shows value after selection

时光怂恿深爱的人放手 提交于 2019-12-01 06:50:37
I'm trying to use a drop-down list in my grid. This is my grid definition: $("#grid").kendoGrid({ editable: true, dataSource: { data: data, schema: { model: { fields: { Name: { type: "string", editable: false }, FruitName: { type: "string" }, FruitID: { type: "number" } } } } }, columns: [{ field: "Name", title: "Name", width: 150 }, { field: "Fruit", title: "Fruit", width: 115, editor: renderDropDown, template: "#=FruitName#" }] }); And this is my editor function: function renderDropDown(container, options) { var dataSource = [ //{ name: "", id: null }, { FruitName: "Apple", FruitID: 1 }, {

Bug in kendo ui grid lrt css in chrome

廉价感情. 提交于 2019-12-01 06:21:50
There is a bug in kendo ui grid rtl css in chrome. If you notice example in Telerik site, you can see this bug: http://demos.telerik.com/kendo-ui/web/grid/rtl.html When you go to page 6, the header and body, isn't align. This error is in chrome (for me: V35) and in the firefox (V28) and IE(V11) does not this error. You can same error in horizontal scrolling. For example in ltr direction: http://jsbin.com/otolop/2/edit this is OK in all browser. But in rtl direction: http://jsbin.com/otolop/6/edit It has error in chrome and has no error in firefox and IE. How can I fix this error. Thanks alot.

Kendo grid format time issue in date column [duplicate]

。_饼干妹妹 提交于 2019-12-01 06:07:54
问题 This question already has answers here : Kendo grid date column not formatting (7 answers) Closed 2 years ago . I have a kendo grid, it has a date column. I want to show date and time there. I am using below format in column definition, format: "{0:dd-MMM-yyyy hh:mm:ss tt}" In modal I used date type Updated_Date: { type: "date" } Output date is coming as '10-Oct-2013 12:00:00 AM', but actual date returned via ajax call is "Updated_Date":"2013-10-10T05:02:40.44" What to do to show the correct

How to use SetDataSource Method of the Kendo UI Grid

血红的双手。 提交于 2019-11-30 15:08:48
问题 Has anyone been able to use setdatasource method of the kendo UI grid? I believe this is used to assign datasource that can be assigned to the grid at the later stage and also for grid refresh purposes. However i couldn't find any proper documentation that explains how to use this method and make refreshable grid. I am trying to update my datasource via remote ajax call. I also assumed that it should autorefresh when the source is updated by setting the autosync property to true. Everytime i

kendo grid delete command not working

ぐ巨炮叔叔 提交于 2019-11-30 14:42:17
问题 i have developed a web application using kendo ui tools and theres a kendo grid with batch edit mode .. but when i press the delete button for any record in kendo grid it will erase from the list in grid but actually not in the data source.when i reload the page or grid the deleted item will still exist.. here is the code of my grid <div id="grid"> </div> <script type="text/javascript"> $("#submitMarketUser").click(function () { var grid = $("#grid").data("kendoGrid"); var dataSource = new

Kendo Grid scroll to selected row

旧时模样 提交于 2019-11-30 14:01:54
问题 I want to be able to call a function that scrolls the Kendo grid to the selected row. I´ve already tried some methods but none of them worked, for instance I tried this: var grid = $("#Grid").data("kendoGrid"), content = $(".k-grid-content"); content.scrollTop(grid.select()); I´ve also tried this: var gr = $("#Grid").data("kendoGrid"); var dataItem = gr.dataSource.view()[gr.select().closest("tr").index()]; var material = dataItem.id; var row = grid.tbody.find(">tr:not(.k-grouping-row)")

manually maintain dirty cell marker on paging in Kendo grid

烈酒焚心 提交于 2019-11-30 14:01:29
I have an editable Kendo grid where I can edit a cell and the grid adds the red mark to the upper left hand corner of the cell. I go to another page and then come back to the page where the edit took place and the red mark is gone but the newly added value in the cell remains. I saw a response to this on the Kendo site where it was advised that: "In order to show the "dirty flag" every time the grid is rebound it will have to iterate through all the model, check all fields if changed and visible in the grid cells. " I'm assuming this will need to be done on the DataBound() event of the grid