-
17 Jul 2012 7:57 AM #191
Thank you guys for you help.
I've tried both codes below.
However I still get Loading message and stops there.
Code:applyStore : function() { var store = new macc.store.Customer({autoLoad: true}); return store } applyStore : function() { var store = new macc.store.Customer(); store.load(); return store }
-
17 Jul 2012 8:13 PM #192
-
19 Jul 2012 9:45 AM #193
I posted this post in the thread for the Sencha Touch 1 version. But it is more relevant here.
I am trying to place a grid inside a panel. This panel is used in a card layout which switches depending on user actions. This panel will be used to display customer information. The page is not showing correctly and a grid layout is not present. It looks more like a list. Also the items from the store are not displaying. Can anyone point me in the right direction, please?
Code:Ext.define('GFD.view.CustDetails', { extend: 'Ext.ux.touch.grid.View', paths : { 'Ext.ux.touch.grid': './Ext.ux.touch.grid' }, requires:[ 'Ext.ux.touch.grid.View', 'Ext.ux.touch.grid.feature.Feature', 'Ext.ux.touch.grid.feature.Sorter', ], xtype: 'custdetails', id:'custdetailsPanel', config: { items: [ { xtype: 'spacer', height: '50px' }, { xtype: 'touchgridpanel', title: 'Cust Details', id: 'custGrid', store: 'CustomerStore', columns:[ { header: 'Customer Number', dataIndex: 'cust_no', style: 'padding-left: 1em;', width: '40%', }, { header: 'Order Date', dataIndex: 'order_date', style: 'padding-left: 1em;', width: '40%', }, { header: 'Telephone.', dataIndex: 'tel_no', style: 'padding-left: 1em;', width: '40%', }, { header: 'Contact', dataIndex: 'contact_name', style: 'padding-left: 1em;', width: '40%', }, ], } ], } });
-
19 Jul 2012 9:49 AM #194Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
Include the CSS?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
19 Jul 2012 10:06 AM #195
-
19 Jul 2012 10:35 AM #196Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
If you can see the rows with data in the DOM but not visually, that will likely be a layout/sizing issue.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
19 Jul 2012 10:41 AM #197
Great, thanks. Another issue I just noticed is it is only displaying two of the headings. Any ideas on that?
EDIT: Never mind solved it.
-
19 Jul 2012 6:52 PM #198
-
26 Jul 2012 7:09 AM #199
Hi, I'm trying to use the Ext.ux.touch.grid to create something like a tree-grid. When you tap on an item, I'd like to show (incl. animation) another component (a list, another dataview, a container, whatever; it doesn't really matter as long as it has a specific height) below the tapped item. When I tap on the item again, the extra component should hide.
My question is: What would you do? How would you implement that?
-
28 Jul 2012 8:11 PM #200
bubble event
bubble event
I have this in Ext.ux.grid.touch.view with editable.
How can I listen for the CHANGE or BLUR event in the controller?Code:{ header : 'Packs', dataIndex : 'packs', width : '10%', style : "text-align: center;", editor : { xtype : 'numberfield' } },
I've tried many suggestions from the forum, but could not make it work.
If I attach listeners right below the xtype: 'numberfield', it works but I need to be
able to reference it in the controller for further processing.
thank you.


Reply With Quote
