question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to align rows in grid?

See original GitHub issue

@tribis Hey there. I have a serious issue in aligning my rows. Whenever grid is load it squeezes the row and if I slightly change the size of browser then it surprisingly become correctly aligned I dont whats the issue behind this. Waiting for your help please as early as possible. I have attached screen shot and the piece of code which will clear you my issue.

CODE:

$("#userUpdation").jsGrid({
        height: "100%",
        width: "100%",
        filtering: false,
        inserting:false,
        editing: true,
        selecting: true,
        sorting: false,
        paging: true,
        autoload: true,
        pageSize: 10,
        pageButtonCount: 5,
        controller: {

            loadData: function (filter) {
                return $.ajax({
                    type: "GET",
                    url: "/updateUser",
                    data: filter,
                    success: function (result){
                              **$('#userUpdation').jsgrid('render');**
                    }
                });
            }
        }
    });

jsgrid

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tabalinascommented, Aug 24, 2016

Glad that you figured it out. You are welcome!

0reactions
usmannoorcommented, Aug 24, 2016

@tabalinas Thanks man it is working now. I had an invisible container and I was unaware of it now all things are clear. Thanks for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Box alignment in grid layout - CSS - MDN Web Docs
Inline / row axis are horizontal. We are able to align the content inside grid areas, and the grid tracks themselves on these...
Read more >
How to use grid-row-align and grid-column-align?
The grid-row-align property defines the vertical alignment within the row while grid-column-align defines the horizontal alignment within ...
Read more >
How To Use CSS Grid Properties to Justify and Align Content ...
When the entire grid is smaller than the space for the grid container, use justify-content to justify the grid along the row axis....
Read more >
A Complete Guide to CSS Grid
Aligns grid items along the inline (row) axis (as opposed to align-items which aligns along the block (column) axis). This value applies to ......
Read more >
CSS Grid Alignment - Quackit Tutorials
The align-self property aligns a box within its containing block along the block/column/cross axis. ... Here, the red grid item has a value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found