Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new row via field in frozen columns section of example-frozen-columns leads to mismatching left/right #59

Open
whelaro opened this issue Oct 10, 2013 · 0 comments

Comments

@whelaro
Copy link

whelaro commented Oct 10, 2013

Steps:

go to http://jlynch7.github.io/SlickGrid/examples/example-frozen-columns.html

scroll to bottom, enter editor mode of Title, and enter test data. press enter.

fix, just one line (bottom one. In fact, don't reproduce my entire bit as I've extended it to use textbox data for Title1-Title4):

  grid.onAddNewRow.subscribe(function (e, args) {
    var item = {
        "num": data.length + 1, "id": data.length, "title": "New task", "duration": "1 day", "percentComplete": 0, "start": "01/01/2009", "finish": "01/01/2009", "effortDriven": false,
                "title1": $('#item1').val(), "title2": $('#item2').val(), "title3": $('#item3').val(), "title4": $('#item4').val()};
    $.extend(item, args.item);
    dataView.addItem(item);
    grid.invalidate();
    grid.scrollRowIntoView(grid.getDataLength(),true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant