Opened 13 years ago
Closed 12 years ago
#7059 closed defect (fixed)
Text highlight/selection in Grid
Reported by: | benschell | Owned by: | Nathan Toone |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | DojoX Grid | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
From a colleague:
If user wants to copy text of grid cells, text selection (drag or Ctrl+A) within the grid is not possible. This is killing the usability in our application.
Will there be support for selecting the text inside of a grid? Is this simply a limitation? Obviously dojox.* projects aren't held to the same standards with regards to accessibility and whatnot, but shouldn't one be able to at least copy the text out of an individual cell?
Change History (8)
comment:1 Changed 13 years ago by
Milestone: | → future |
---|
comment:2 Changed 12 years ago by
Owner: | changed from Bryan Forbes to Nathan Toone |
---|
comment:3 Changed 12 years ago by
Milestone: | future → 1.3 |
---|
comment:4 Changed 12 years ago by
Priority: | normal → high |
---|---|
severity: | normal → major |
comment:5 Changed 12 years ago by
I wanted to inquire if root cause was identified, or if this is still pending investigation.
comment:6 follow-up: 7 Changed 12 years ago by
The text selection is disabled explicitly in Drug And Drop CSS. By default all DND enabled wigets get '-moz-user-select' style settled into 'none'. This is due to number of issues (#6345, #4854, #6350).
You can do the following to enable system text selection for the CELL/ROW:
grid.domNode.cssText = null; dojo.style(grid.domNode, "-moz-user-select", "text"); dojo.style(grid.domNode, "MozUserSelect?", "text");
Unfortunately there is no way at all to select more than one row at ones due to architectural decision about how grid table is rendered. (grid uses set of DIVs for each row and then plain HTML table for row data and not for the entire grid data)
comment:7 Changed 12 years ago by
Replying to romankuzmik:
actually 'dojo.setSelectable('yourGridId', true);' is enough
comment:8 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Reassigning to me