-
2 Apr 2010 2:14 PM #51
Are the Ext 2.2 threads no longer read or do I need to post in a different location?
-
3 Apr 2010 5:10 AM #52Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
You either need to change templates.cell in the prototype or in your instance, but there is no need to do both.
Do you mean you can select text, but you can't copy it or can't you even select text?
-
3 Apr 2010 6:54 AM #53
First of all, thanks
for the response. I hope that this helps clarify.
I am able to select entire rows (say rows 1-10) in a grid (the cells in each row contain text), then I hit ctr-c to copy but I am unable to paste to say notepad.
It is pasted into my grid as follows:
Code:var grid = new Ext.grid.GridPanel({ viewConfig: { templates: { cell: new Ext.Template( '<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} x-selectable {css}" style="{style}" tabIndex="0" {cellAttr}>', '<div class="x-grid3-cell-inner x-grid3-col-{id}" {attr}>{value}</div>', '</td>' ) } }, store: store, columns: columns ...
-
3 Apr 2010 11:16 PM #54Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
This change makes text selectable. That means you have to select it using mouse drag and not by selecting multiple rows.
-
4 Apr 2010 7:18 AM #55
Thank you for clearing up my misconception. Is there a way to make a selectable portion of the contents of a grid copyable so that it can be pasted elsewhere?
-
20 Apr 2010 10:37 AM #56
The code worked in IE 8 but did not work in FF 3.6.3. Am I missing something?
-
20 Apr 2010 10:44 AM #57
Perhaps that is why it didn't work for me - I'm using firefox 3.6.3.
-
14 Jun 2010 10:39 AM #58
I am using a basic grid along with gridPlugin for checkboxes in my page.
In one of my column have hyper links. So when ever I click on a link, checkbox gets selected and takes to that page.
I am aware of GridPlugin uses CheckboxSelectionModel which is extended from RowSelectionModel.
Is there any work around to have CellSelectionModel and CheckboxSelectionModel?
-
14 Jun 2010 10:47 AM #59
What I am trying (and failing so far) to accomplish is make it so that a user can copy and paste the contents of a grid to another window, excel file, etc.
-
14 Jun 2010 4:58 PM #60
There is an ExportToExcel plugin (name might be wrong) somewhere on this site to click a button and the table gets exported as Excel file. I have yet to use it, but was planning on trying it at some point. Sounds like you might be able to use that instead...


Reply With Quote