Comments (9)
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.
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.
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.
We do need to provide more documentation on how to do this type of thing though.
from dgrid.
Awesome, thank you!
from dgrid.
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.
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.
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.
@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)
- ColumnSets with CompoundColumns and ColumnResizer does not always resize correctly.
- horizontal scrolling alignment issue dgrid
- horizontal HOT 1
- rowindex HOT 1
- Is this project still maintained? HOT 2
- DGrid 'select all' checkbox is not working as expected HOT 2
- OnDemandList does not refresh on store.setData HOT 2
- build issues with dojo 1.16 HOT 7
- Editor focusout handler is stopped when a row is removed
- CheckBox Editor does not work as expected in Safari HOT 3
- Removed row handing in Editor onblur HOT 2
- Editor: browser blur with active Select leads to bugged editor
- Update Intern from 3 to 4
- (ColumnSet +) CompoundColumns_findSortArrowParent(field) fails to find parent out of the 1st column set
- Website still points to v1.2.1
- Dgrid selector inconsistently working in touch screen devices like ipad dgrid/v1.1.0 HOT 10
- dgrid version 1.3.3 is breaking formatter function in dgrid HOT 2
- How to set dgrid editor checkbox readonly conditionally ?
- dgrid does not throw error on scroll (http-status-code) HOT 2
- dgrid.cell().element is undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgrid.