Opened 10 years ago
Closed 8 years ago
#11821 closed defect (patchwelcome)
Class Attribute Overriden When Attaching DataGrids to divs.
Reported by: | gewthen | Owned by: | Bryan Forbes |
---|---|---|---|
Priority: | blocker | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.5 |
Keywords: | datagrid dojox class attribute | Cc: | |
Blocked By: | Blocking: |
Description
When attaching a Datagrid to a div element with an existing class attribute, the original class attribute gets overridden with "dojoxGrid". This makes it impossible to add additional styling attributes to that div. I was expecting dojo to append to the class attribute rather than replace it.
A work around is to enclose the div the grid is attached to by another div, but simply appending to the class attribute would solve the problem rather than introducing additional div tags for sake of not being able to assign a class value of the intended element.
If the div the grid is attached to is considered completely controlled or "owned" by dojo, then perhaps I missed that in the documentation and this is no an issue.
Change History (5)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Owner: | changed from bryanforbes to Bryan Forbes |
---|
comment:4 Changed 8 years ago by
comment:5 Changed 8 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Can you attach a test case? Your description "attach a datagrid to a div" is ambiguous.