Questions tagged [kogrid]

koGrid is a Knockout data grid.

koGrid is a direct knockout port of ng-grid, making it easy to create styled data grids for web pages.

92 questions
3
votes
1 answer

kogrid with server-side paging+filtering: self.sortedData is not a function

I'm experiencing an issue with knockout and kogrid. After several tests, I managed to reproduce it in this fiddle: http://jsfiddle.net/MVuUp/ In short, I have a sample VM (ItemsViewModel) which should provide data to a kogrid, with…
Naftis
  • 4,393
  • 7
  • 63
  • 91
3
votes
1 answer

Ko grid +showing column conditionally

data-bind="koGrid: { data: ViewModel.statistics, columnDefs: [ { displayName: 'Name', field: 'toName', sortable: true, headerTemplate: 'TmplStatsHeader', headerClass: 'left15 ' }, …
Kuttan Sujith
  • 7,889
  • 18
  • 64
  • 95
2
votes
0 answers

KOGrids - Different Height on Same Page

Please excuse if this is a daft question - I am CSS clueless! I have two ko grids on the same page. I'd like to be able have a different height for grid 1 compared to grid 2. Unfortunately, it seems the height cannot be set from the standard…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
2
votes
1 answer

KO Grid - repeating value

I have an ASP.Net MVC site with a KOGrid in one of my views. This pulls data by making an Ajax call to a controller which then selects from SQL Server via EF. My data table can be seen below: I have the following column definition for my KO…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
2
votes
2 answers

kogrid filter not working - with plunker

I'm trying to use the filter functionality of the knockoutjs ko grid. There are two problems: the drop-down for the filter shows "Choose columns" but the end of the column names are overwritten by a table symbol the filter functionality isn't…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
2
votes
1 answer

KoGrid custom Cell Template

I need custom KoGrid Cell Templates like this: for this model: var model = [ { Color: { Hex: "#5EB95E", Name: "green" }, AvailablePatterns: { SelectedId:"", Patterns:[{Title:"test1", Id:1},{Title:"test3", Id:2}]}}, …
Dmitry P.
  • 131
  • 1
  • 7
2
votes
1 answer

How to implement custom sort for koGrid?

Data: 16.00 hours 19.99 hours 210.46 hours 262.54 hours 303.19 hours 55.95 hours 60.07 hours 64.07 hours 7.95 hours What I want: I need to allow sorting for this king of data in koGrid (default feature by clicking grid header, asc or desc…
VidasV
  • 4,335
  • 1
  • 28
  • 50
2
votes
1 answer

Conditional Cell Formatting in KOGrid

I am trying to change text color based on a number being positive or negative in a kogrid cell. If the number is negative, i need the text color to be red. If the number is positive, I need the text color to be green. I thought using the…
Chris
  • 795
  • 2
  • 12
  • 27
2
votes
2 answers

Can I use custom filters with KOGrid?

I have some custom filters, I could put them outside of the grid but it would look nicer if they were located at the same place as the built in one, can I somehow alter the filter template or in some other way alter the built in filter view? This is…
Anders
  • 17,306
  • 10
  • 76
  • 144
2
votes
1 answer

Why does the click event only fire for the first element in this KoGrid template?

I'm trying to bind a click event handler to some anchor tags in a KoGrid. However, the click event only attaches to the first anchor tag. It's not a syntax error because if I switch the order of the tags then the previously non-working second link…
Jason
  • 8,400
  • 10
  • 56
  • 69
2
votes
1 answer

koGrid causing "Mixed Content" warning in IE7

koGrid is causing IE7 to display its "Mixed Content" warning. What is causing this? Is there a fix? http://jsfiddle.net/3uyaK/1/
var vm = { myObservableArray: ko.observableArray([{id:1,…
Homer
  • 7,594
  • 14
  • 69
  • 109
2
votes
1 answer

Knockout parent-child lazy load with mapping plugin & KoGrid

Set up: In my viewmodel, I have an observable array of item built from JSON (it only has name and ID) called "items". I also have an observable for just the selected item (it has the full details for the item) called "selecteditem". When you click…
Scott R. Frost
  • 2,026
  • 1
  • 22
  • 25
2
votes
1 answer

Row selection KoGrid

I am workign with Ko Grid and I am binding an array of observable to the Grid. Now, I do not see much documentation about selection mechanism. I would like to operate on selected rows in the grid when user selects particular rows. Anyone has any…
Lost
  • 12,007
  • 32
  • 121
  • 193
1
vote
2 answers

How to implement DateTime sorting in the KoGrid

I have a KoGrid with DateTime row. And I want have ability for sorting this row. I try to implement custom sortFn function for compare DateTimes instead strings. But it doesn't work correctly(3/03/2017 02:20 PM upper than 31/04/2016 02:20 PM) …
Dmitry P.
  • 131
  • 1
  • 7
1
vote
1 answer

Knockout KOGrid Hyperlink within a cell

I have an ASP.Net MVC5 app which returns a view model to several fields, one of which contains a URL. When the data from the view model is displayed within the KO Grid I'd like the column containing the hyperlink field to be displayed as a…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200