4

I am using KoGrid for my data representation. This is what it looks like at first:

Initial loaded grid

When I rotate the phone or tab the grid will display correctly, but I could not figure out how to solve this issue:

problematic rendering

Has anyone faced this issue?

My Javascript:

var vm = {
    myObsArray: ko.observableArray([
        { firstName: 'John', lastName: 'Doe' },
        { firstName: 'Jane', lastName: 'Doe' },
        { firstName: 'Jane', lastName: 'Doe' }
    ])
};
ko.applyBindings(vm, document.getElementById("vm"));

Html:

<div id="vm">
    <h3>Size (<span data-bind="text: myObsArray().length"></span>)</h3>
    <div class="gridStyle" data-bind="koGrid: { data: myObsArray }"></div>
</div>

This is a simple example which I found here. Additionally I have used jquery mobile(1.4) with this

Jeroen
  • 60,696
  • 40
  • 206
  • 339
ExCode
  • 444
  • 2
  • 9
  • 24

1 Answers1

0

You should write css3 media-queries to correct the display of your data-table in portrait view of mobile or tablet.

Manoj
  • 73
  • 3