kogrid

KoGrid how to refresh grid in case data is changed

∥☆過路亽.° 提交于 2019-12-25 05:02:03
问题 I am tring to use KoGrid lib, but I got case that I can't resolve. I don't know how to refresh grid in case if I got new data for display. I need to update data after ajax call. $.ajax({ type: "GET", url: reqvesturl, cache: false, dataType: "jsonp", success: function (data) { resultData = data; if (!model) { model =new mainViewModel(); ko.applyBindings(model); } else { model.myData(data); //mo.applyBindings(); }; //model.myData(data); }, error: function (jqXHR, textStatus, errorThrown) { } })

How to Populate koGrid Groups Array

我只是一个虾纸丫 提交于 2019-12-24 08:22:45
问题 I have a koGrid configured as follows: var myItemsGrid = { data: myItems, columnDefs: [ { field: 'item.title', displayName: 'Title', cellTemplate: $("#cdfUrlCellTemplate").html() }, { field: 'item.dueTimeUtc', displayName: 'Due', cellFormatter: formatDate, sortFn: sortDates }, { field: 'id', displayName: 'Edit', cellTemplate: $("#editCellTemplate").html() } ], showGroupPanel: true, groups: ['item.title'], showFilter: false, canSelectRows: false }; My problem is that the groups array, which I

KoGrid update cell

二次信任 提交于 2019-12-24 00:41:22
问题 I am trying to update a single cell with KoGrid, but I don't see the update happen until I sort the grid by clicking on the column header. The following is the code I'm using. JSFiddle available here: http://jsfiddle.net/b22Ex/2/ The line that's not working is: vm.data()[0].b(100). Shouldn't that work since the value is a ko.observable? var L = [ {a:ko.observable('a1'), b:ko.observable('b1'), c:ko.observable('c1')}, {a:ko.observable('a2'), b:ko.observable('b2'), c:ko.observable('c2')}, {a:ko

KO Grid Display Isseues, On resize Gird shows one row. Images also included

戏子无情 提交于 2019-12-22 08:20:54
问题 Using the following. 1) Visual Studio 2012. 2) Hot towel template. 3) downloaded ko grid and and its css. home.html <section id="alerts-view" class="view"> <header> <a class="btn btn-info btn-force-refresh pull-right" data-bind="click: refresh" href="#"><i class="icon-refresh"></i> Refresh</a> <h3 class="page-title" data-bind="text: title"></h3> <div class="article-counter"> <address data-bind="text: alerts().length"></address> <address>found</address> </div> </header> <div data-bind="koGrid:

KO Grid Display Isseues, On resize Gird shows one row. Images also included

僤鯓⒐⒋嵵緔 提交于 2019-12-05 15:39:49
Using the following. 1) Visual Studio 2012. 2) Hot towel template. 3) downloaded ko grid and and its css. home.html <section id="alerts-view" class="view"> <header> <a class="btn btn-info btn-force-refresh pull-right" data-bind="click: refresh" href="#"><i class="icon-refresh"></i> Refresh</a> <h3 class="page-title" data-bind="text: title"></h3> <div class="article-counter"> <address data-bind="text: alerts().length"></address> <address>found</address> </div> </header> <div data-bind="koGrid: gridOptions"></div> </section> home.js define(['services/datacontext', 'durandal/plugins/router'],

Integrate the koGrid with the Durandal/HotTowel template

时光总嘲笑我的痴心妄想 提交于 2019-12-04 09:25:27
问题 I work on an asp.net solution with the Durandal template. I try to use the koGrid (https://github.com/Knockout-Contrib/KoGrid) which is compatible with knockout. When inserting this grid in a test page managed by Durandal, it doesn't work: the grid seems to be there but not correctly displayed. We noticed that if we resize the window, then the grid adjust correctly. Does anyone already succeed integrate this koGrid in a Durandal/HotTowel template? Steps to reproduce the problem: Create a new

Integrate the koGrid with the Durandal/HotTowel template

安稳与你 提交于 2019-12-03 02:59:01
I work on an asp.net solution with the Durandal template. I try to use the koGrid ( https://github.com/Knockout-Contrib/KoGrid ) which is compatible with knockout. When inserting this grid in a test page managed by Durandal, it doesn't work: the grid seems to be there but not correctly displayed. We noticed that if we resize the window, then the grid adjust correctly. Does anyone already succeed integrate this koGrid in a Durandal/HotTowel template? Steps to reproduce the problem: Create a new ASP.NET MVC project and choose the Durandal template Add the koGrid in the project (available in