kendo-ui

kendo ui grid filter, sort and paging in the server

时间秒杀一切 提交于 2020-01-02 03:51:08
问题 I'm using kendo grid and want to perform filtering, sorting and paging in the server. I understand that I should add to the dataSource: serverPaging: true, serverSorting: true But how do I tell the grid/dataSource which url it should use for the sortig, filtering etc. And what if I want to perform the sortig myself? I want to use the control kendo provides but to go to the server myself. Is there an event like "sortTriggered" where I can call "prevntDefault" or something like that... I don't

How to make scrollbar auto enabled or disabled in a Kendo grid?

╄→гoц情女王★ 提交于 2020-01-02 02:41:29
问题 This is my code for creating the grid: @{ if (Model.GenericEntityList.Count > 0) { @(Html.Kendo().Grid(Model.GenericEntityList).Name(screenNames.ToString()).Columns( columns => { columns.Bound(a => a.ID).Title("<input id='checkAll' type='checkbox' />").ClientTemplate("<input type='checkbox' id=#=genericCheckbox(ID,ViewFlag)#").Width(7); columns.Bound(a => a.Name).Title(screen.ToString() + " Name").Width(93); } ).Selectable().Scrollable().DataSource( datasource => datasource.Ajax().Read(read =

zone.js: 140 Uncaught TypeError: Cannot read property 'remove'

狂风中的少年 提交于 2020-01-02 02:37:08
问题 I am new to kendo ui. I developed prototype in my fiddle. delete confirmation window is working fine there. but when I integrate in my codebase I am getting error Cannot read property 'remove' at the line pai_to_delete.remove(); can you guys tell me how to fix it. providing my code below. updated -may be I did not explain you properly...how my ui looks is when I click a link a big popup opens with a grid...in that grid when i click a column a small popup with delete option opens up...when I

KendoUI grid filter date format

孤街浪徒 提交于 2020-01-02 01:56:23
问题 In my kendo grid I want to change the date format in filter Ex: 1/30/2015 to Jan 30, 2015 I already change the date format of Start Date field: "StartDate", title: "Start Date", width: 30, format: "{0:MMM dd, yyyy}", parseFormats: "{0:MM/dd/yyyy}", headerTemplate: '<label for="check-all"><b>Start Date</b></label>', headerAttributes: { style: "text-align: center;" }, attributes: { style: "text-align:center !important;padding-right: 25px;" } Code in my filterable filterable: { extra: false,

Kendo UI does not call create if a function is specified

浪子不回头ぞ 提交于 2020-01-01 19:37:15
问题 Using Kendo.web.js versions 2013.2.716 and 2012.3.1315, I am trying to use a function in my transport.create rather than calling a URL. What I find is that the function does not get called. Instead a default URL is called and the resulting HTML appears to cause an error in the bowels of kendo because it is expected to be JSON instead. I assume that this is some type of configuration error, but I can't figure out where the problem is. Here is a snippet of the code: var clientListDS = new kendo

How to filter a Kendo UI MVC grid using a dropdown list

夙愿已清 提交于 2020-01-01 19:27:22
问题 I have a kendo grid that is filtered by pushing values from a dropdownlist into the built in kendo filters. I can search the grid using the same method when I type values in a textbox and search. This is my kendo grid and the dropdown @(Html.Kendo().DropDownListFor(model => model.MyObject.ID) .Name("Objects").DataTextField("Value").DataValueField("Key") .BindTo(@Model.MyObjectList).AutoBind(true) .HtmlAttributes(new { id = "selectedObject" }) <a class="button" onclick="searchGrid()" id=

How to filter a Kendo UI MVC grid using a dropdown list

落花浮王杯 提交于 2020-01-01 19:27:08
问题 I have a kendo grid that is filtered by pushing values from a dropdownlist into the built in kendo filters. I can search the grid using the same method when I type values in a textbox and search. This is my kendo grid and the dropdown @(Html.Kendo().DropDownListFor(model => model.MyObject.ID) .Name("Objects").DataTextField("Value").DataValueField("Key") .BindTo(@Model.MyObjectList).AutoBind(true) .HtmlAttributes(new { id = "selectedObject" }) <a class="button" onclick="searchGrid()" id=

Kendo UI Datasource - Filter on releated data

空扰寡人 提交于 2020-01-01 17:02:28
问题 I am having trouble filtering a kendo data source on related data (many to many). I am using ASP.NET WebAPI2 and DataSourceRequest to catch the request on the server. The data is then fetched using the .ToDataSourceResult() extension method on an IQueryable. I am aware of this article http://blogs.telerik.com/kendoui/posts/12-11-29/the_facts_on_using_kendo_ui_with_asp_net_webapi My Data is structured as follows:- Customer -> CustomerAddress -> Address Where CustomerAddress is the join table

kendo ui select a specifix index/text during first load

安稳与你 提交于 2020-01-01 12:22:12
问题 The problem i am running into is that during the first load of the page i want to read the value from cookies if found, i want to change the theme that was stored in the cookie. not only want to change the them but i also want to select that item in the combo box so that it is in sync with the them that was applied. How can i select a specific item during initial page load, when i am constructing the combobox ? $(document).ready(function () { var initialized = false; // theme chooser drop

Difference between Kendo UI Web and Kendo UI ASP.NET for MVC

会有一股神秘感。 提交于 2020-01-01 05:24:21
问题 When creating an MVC project via Visual Studio, Views are created with ".cshtml" files. The KendoUI Server Wrappers have a model in the View whereas the KendoUI Web not only doesn't have any model, but there is no ".cshtml" files; only HTML. The HTML seems to just point to a datasource for data retrieival/updates whereas the KendoUI Server Wrappers need a model to pass to a controller for the same type of operations. What is the difference between the two? I just don't understand the KendoUI