Comments (9)
I found a couple of revisions worth making to your test case, but your test case also exposed a couple of tiny bugs in dgrid at the same time, so it was worth it for both ends. :)
Here's a gist with suggested revisions to your test case: https://gist.github.com/4ea187b11473a0240a65
(the earlier revision of that gist is the original contents from this issue; the later revision has some fixes, so you can compare them).
Fixes in dgrid that this uncovered:
Hopefully this resolves the issue; let us know if it doesn't. Thanks!
from dgrid.
@kfranqueiro Thanks for fixing this and pointing out those improvements. I realized that wrapping the Dgrid in a content pane was an option that makes the Dgrid behave better (even without those other improvements). It seems like one should be able to use the Dgrid directly in a dijit layout (like Border Container) without wrapping it. Is this something that is not supported?
from dgrid.
Yeah, currently dgrid doesn't behave as it would need to in order to work as a direct child of a Dijit layout widget. It's something we are likely to investigate further, as this isn't the first time the question has been raised.
from dgrid.
@kfranqueiro Thanks for the update on this. I would lobby for making this work like every other gadget in dojo - they can be dropped directly into any layout. Just my 2 cents.
from dgrid.
My worthless 2c: yes please. I just spent 1 hour figuring out that a dgrid doesn't work when added to a contentpane. The issue I came across is that widgetId is not set in the DOM. So, getChildren() simply ignores those (it uses the registry).
IF adding widgetId is the only change, then maybe it is worth doing. However, I suspect it might not be...
In the meantime, I will happily wrap the dgrid. But!
from dgrid.
Actually as of dgrid 0.3.5, DijitRegistry has what it takes to make dgrid work as a direct child of dijit layout widgets.
from dgrid.
Hi,
I tried it, but the dgrid doesn't seem to set widgetId in the Dom, and
getChildren() fails to find it. Things display weird in BorderContainer
after that...
Merc.
Merc.
On 29/03/2013 9:10 AM, "Kenneth G. Franqueiro" [email protected]
wrote:
Actually as of dgrid 0.3.5, DijitRegistry has what it takes to make dgrid
work as a direct child of dijit layout widgets.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/119#issuecomment-15624322
.
from dgrid.
https://github.com/SitePen/dgrid/blob/v0.3.6/extensions/DijitRegistry.js#L19 does exactly what you are referring to. Are you sure you're mixing in dgrid/extensions/DijitRegistry
?
from dgrid.
Hi,
Ah, I am now, and it actually works. No, I wasn't mixing in DijitRegistry
(which does a lot if fiddly things -- thanks for writing this).
Yes I will stop asking idiotic questions at some point.
(Thanks for your patience)
Merc.
On 29 March 2013 09:57, Kenneth G. Franqueiro [email protected]:
https://github.com/SitePen/dgrid/blob/v0.3.6/extensions/DijitRegistry.js#L19does exactly what you are referring to. Are you sure you're mixing in
dgrid/extensions/DijitRegistry?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/119#issuecomment-15625480
.
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.