Opened 9 years ago

Closed 6 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:


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 9 years ago by bill

Can you attach a test case? Your description "attach a datagrid to a div" is ambiguous.

comment:2 Changed 9 years ago by bill

Owner: changed from bryanforbes to Bryan Forbes

comment:3 Changed 7 years ago by Colin Snover

Priority: highblocker

Bulk update of open ticket priorities.

comment:4 Changed 6 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:5 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.