kendo-ui

Combining Knockout.js + KendoUI - What has been your experience?

僤鯓⒐⒋嵵緔 提交于 2019-12-21 12:33:15
问题 So I see that KendoUI has included an example of integration with Knockout.js: http://demos.kendoui.com/web/integration/index.html However, this looks like a pretty trivial example. According to this post, it looks like binding to something like Kendo's grid would be much more involved: http://www.kendoui.com/forums/ui/grid/knockoutjs-example-for-grid.aspx It also looks as if they are creating their own MVVM implementation to try and solve the issues. Has anyone here used KendoUI and Knockout

Kendo Grid with custom popup editor using MultiSelect - can't get selected items in model

耗尽温柔 提交于 2019-12-21 12:19:35
问题 So the title pretty much says it all. I'm trying to incorporate the new MultiSelect widget into a Grid's custom popup editor template. I'm using the Data Attribute Initialization method and reading the dropdown options from a remote dataSource. This is all working okay, but I can't get the values of the selected items into the model. When I save the row, an array of data is sent to the server representing the first data item selected in the MultiSelect, rather than a comma-separated list of

Lazy load in Kendo UI treeview with caching

情到浓时终转凉″ 提交于 2019-12-21 12:14:02
问题 I am using Kendo UI TreeView to load hierarchical data in my webpage. By default, I am loading data upto 3 levels (ie Root -> Root directs -> Root directs' directs). I need a way to lazily load the remaining nodes as user expands further down the tree. Also, the already fetched data must be cached locally to avoid unnecessary calls for already expanded nodes. I am new to Kendo UI and do not have enough time to go through documentation. The json looks like { Id: '1', ParentId: '-1', Payload: {

Knockout-Kendo Grid with batch editing doesn't update the viewmodel

回眸只為那壹抹淺笑 提交于 2019-12-21 05:39:32
问题 I don't know what is wrong with my implementation but I can't get my viewmodel updated if I'm using editable KendoUI Grid with Knockout-Kendo. If I change some particular table field and log the viewmodel it will not get any update. <button data-bind="click: log">Log ViewModel</button> <div id="gr" data-bind="kendoGrid: options"></div> var pStyleHeader_ViewModel = function() { this.options = { data: ko.observableArray([{ StyleNo : ko.observable("1BA0012"), Description : ko.observable(""),

How to change Kendo Grid Filter Format

∥☆過路亽.° 提交于 2019-12-21 05:22:25
问题 I have a field in my grid that are IDs that range from 1 to 2000. I have it designated as a number in the field definition. The issue is when I use the filter and type in say "1000" when I return to the filter to put in another number it displays "1,000.00". I don't want the filtered text box to show the comma or decimal point. That format isn't relevant for this field. How do I correct this? Thanks in advance! 回答1: While @Flores answer pointed me in the right direction, it did not do what

How to access Kendo Grid's column menu only from outside the grid and add the filter option for specific columns in the column header

本秂侑毒 提交于 2019-12-21 02:40:59
问题 I am new to Kendo Grid and trying to use the columnMenu option. I need to access the column Menu function (only the ability to show/hide columns from a button outside the grid. This link allows me to do that and it is working fine. How to show Kendo Grid's columnMenu using script But this still retains the columnMenu option in the column headers which I do not need. So after looking into it further, I was able to remove the column headers on the load using defaultGrid.thead.find("[data-field

I want to display the applied filter criteria on the Kendo UI Grid

别来无恙 提交于 2019-12-21 02:35:27
问题 How can I display any applied filter criteria on the Kendo UI Grid. I would like to have a readonly display, of the applied criteria. Current functionality does allow user to apply filter, but that the user has to go to the filter menu to look for the filter details. 回答1: The Kendo UI data source doesn't have a filter event, so you'd need to implement that yourself. Then when the event is triggered, you can get the current filter and format it in whatever way you want it displayed. For

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

Programmatically setting grid sort

旧城冷巷雨未停 提交于 2019-12-20 18:39:52
问题 Is it possible to programmatically set the sort parameter of a KendoUI DataSource before reading data and avoiding a second server reading? The scope is setting a default sort on a certain user interaction. How? Here is an example of what I am trying to do, because the answers are not getting to the point (or maybe I am not understanding how things work). I define a Kendo DataSource with an initial sort: var datasource = new kendo.data.DataSource({ parameterMap: function (inputParams,

kendo ui grid datasource filter date format

送分小仙女□ 提交于 2019-12-20 12:41:01
问题 I have a kendo grid with a date field in the datasource. When displaying the field I use a template to display the date in the UK date format 'dd/MM/yyyy'. The problem is when filtering, I don't know how to display the date filter in UK format. Another problem I am having is there is no datetime type, just date, so can only filter by dates not datetimes. Any help or ideas would be appreciated. This is the partial view (cshtml) <script type="text/javascript"> $(document).ready(function() { var