Giter Club home page Giter Club logo

Comments (9)

ivarconr avatar ivarconr commented on September 23, 2024 1

Ok.. then you could provide the following CSS-sample for disabling scrolling:

.dgrid {
height: auto;
background: #eee;
}
.dgrid .dgrid-scroller {
position: relative;
overflow-y: hidden;
margin-top: 0 !important;
}

from dgrid.

AndrewHenryOttawa avatar AndrewHenryOttawa commented on September 23, 2024 1

I found those styles work great with a regular dgrid. When I added CompoundColumns to the dgrid the child header appeared hidden. I added the following styles to a grid with compound columns to reveal the header.

#grid .dgrid-header {
position: relative;
}

#grid .dgrid-scroller{
margin-top:0px;
}

I had to set the margin-top to 0 for the dgrid-scroller as it had a 25px margin with the dgrid-header style that I added.

from dgrid.

kriszyp avatar kriszyp commented on September 23, 2024

One of the goals of dgrid is to utilize CSS to configure the presentation as much as possible to improve performance, minimize size, and maximize intuitive inspector based introspect. Parameter based visual configuration is something we are trying to avoid.

from dgrid.

kriszyp avatar kriszyp commented on September 23, 2024

We do need to provide more documentation on how to do this type of thing though.

from dgrid.

kriszyp avatar kriszyp commented on September 23, 2024

Awesome, thank you!

from dgrid.

SitePenChrisBarrett avatar SitePenChrisBarrett commented on September 23, 2024

@ivarconr

So the styles that work the best are:
#grid {
height: auto;
}
#grid .dgrid-scroller {
position: relative;
overflow-y: hidden;
}
#grid .dgrid-header-scroll {
display: none;
}
#grid .dgrid-header {
right: 0;
}

You can see this in action in the tests: extensions/Pagination.html and autoheight.html.

from dgrid.

jsr6720 avatar jsr6720 commented on September 23, 2024

I know this is closed, but you can also add class "dgrid-autoheight" to get the auto height effect
https://github.com/SitePen/dgrid/blob/master/css/dgrid.css#L127

Also see this nicely documented issue
https://github.com/SitePen/dgrid/blob/1767584e861f2d5aeb5f8a36de0973eef6660411/doc/usage/Styling-dgrid.md#the-dgrid-autoheight-class

from dgrid.

gladenko avatar gladenko commented on September 23, 2024

I have big problem with render in windows a header and column are not aligned the scrollbar is a problem if there is lot of row. i don't resolve with css becouse if i add row the grid appear.

How resolve this big big big problem

from dgrid.

dylans avatar dylans commented on September 23, 2024

@gladenko how many rows is a lot of rows in your case? I wonder if you are reaching the maximum height within various browsers?

from dgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.