-
30 Jul 2012 12:39 AM #201
-
30 Jul 2012 10:00 AM #202
You can do something like this I think.
Then set your controller to control:Code:{ header : 'Packs', dataIndex : 'packs', width : '10%', style : "text-align: center;", editor : { itemId:'test', xtype : 'numberfield' }},
"touchgridpanel #test":{
blur:onBlur
}
Haven't been able to test it but I think it will work.
Thanks
Bob
-
31 Jul 2012 9:13 AM #203
Lincon6: Thanks. I actually found that out and using them and works well.
Bob: I will give it a try and see if that works as well.
Thank you.
-
1 Aug 2012 6:03 AM #204
Architet import
Architet import
Hi i'am tring to use Ext.ux.touch.grid in Architet and after serching and reading other thread i am stuck in this problem:
Code:Ext.define('FM.view.override.GridDataView', { extend : 'Ext.ux.touch.grid.View', xtype : 'griddataview', requires : [ //'Ext.ux.touch.grid.View', 'FM.view.GridDataView', 'Ext.ux.touch.grid.feature.Feature', 'Ext.ux.touch.grid.feature.Editable', 'Ext.ux.touch.grid.feature.Sorter', 'Ext.field.Number', 'FM.store.MyStore' ] }, function() { Ext.override(FM.view.GridDataView, { config : { title : 'Grid', columns : [ { header : 'Text', dataIndex : 'text', width : '90%', editor : { xtype : 'textfield' } }, { header : 'Amount', dataIndex : 'amount', width : '10%', editor : { xtype : 'numberfield' } } ], features : [ { ftype : 'Ext.ux.touch.grid.feature.Sorter', launchFn : 'initialize' }, { ftype : 'Ext.ux.touch.grid.feature.Editable', launchFn : 'initialize' } ] }, applyStore : function() { alert('lol'); //new Grid.store.Grid({autoLoad : true}); return new FM.store.MyStore({autoLoad:true}); } }); });
i built a Data View and then i have override the component with code above, my problem is when i launch application the grid doesn't show. In Chrome development tools i dont'have javascript error and all files load fine.Do i have to call constructor of superclass? and how?
(sorry for my bad english)
Ty
-
1 Aug 2012 8:00 AM #205
Hi tecnosencha
I've found most of the time that the grid doesn't show up, it's because I've forgotten a height on the grid.
Try adding a height and width to the grid and see if it shows up. I haven't used it in architect before though so it may still not work.
Also see if the grid is being rendered into the dom by looking at the elements tab in the dev tools in chrome and search for grid.
Thanks
Bob
-
1 Aug 2012 11:28 PM #206
Hi badgerb1!
Ty for reply
this is the dom of my test app and grid seems to be rendered but is empty
-
4 Aug 2012 10:44 AM #207
-
13 Aug 2012 6:43 AM #208
Hi. I am using the grid in my app and would like to use the checkbox functionality. However, I am using itemtaps on the grids to redirect user to different views. This means the only checkbox I can tick is the one in the top left corner and I cannot select individual rows without the view changing.
At the moment I am trying to remove and add events to the grid using a listener. However, the stopEvent() and the removeEventListener methods are not working on the grid.
Has anyone encountered this before and found a solution?
EDIT
Got around this using
Code:if(e.target.className =='grid-checkbox') { //do stuff }else { //goto view }
-
14 Aug 2012 6:21 AM #209
Blank cells and last add on the top
Blank cells and last add on the top
Hello,
I am using that good grid (thank you Mitchell Simoens) but I have three issues with it :
- How to put the last element added on the top of the grid and not at the queue that we need to scroll to see the last element added ?
- When the user double click on a cell (which I have define non-editable) it becomes blank and it erase the content from the view. Then if you click on an other part of the screen, it looks as normal.
- How to display a picture in a cell and then that column will be sortable (first the lines which have the picture and then those which don't have the picture)
Thank you in advance
-
20 Aug 2012 5:52 PM #210
Hi,
great plug-in. I'm trying to get it to work with the SDK command line tools, specifically "sencha app build package"
I have this at the top of my app.js:
and I have this in app.json:Code:Ext.Loader.setConfig({ enabled : true, paths : { 'Ext.ux.touch.grid' : '../Ext.ux.touch.grid' } });
The error I get is:Code:{ "path": "Ext.ux.touch.grid/View.js" }, { "path": "Ext.ux.touch.grid/feature/Feature.js" },
Any pointers on how to get this component working in a packaged build?Code:Error: [Ext.Loader] Failed loading 'file:///C:/Users/WebApp/sdk/src/ux/touch/grid/feature/Feature.js',
Thanks,
Brett



Reply With Quote