-
19 Mar 2012 6:30 AM #91
FBlack I have changed code according to you. I also tried binding grid in controller as following,
Here my Ext.getStore('Stores') is giving me 0. I am stuck here for many days. store is instantiated but data is not coming. Help please.Code:, launch: function () { console.log('onLaunch controller'); debugger; var store = Ext.getStore('Stores'); tmp2 = store.getCount(); var grid = Ext.getCmp('storeListGrid'); grid.setStore(store); }
-
19 Mar 2012 6:45 AM #92
-
19 Mar 2012 6:54 AM #93
I have added store in stores array in Ext.application as follows,
Code:Ext.application({ name: 'MyApp', views: [ MyViewport' ], models: ['Stores'], stores: ['Stores'],
-
19 Mar 2012 7:40 AM #94
ok, but where do you create the store?? where do you do Ext.define('store,{
extend: 'Ext.data.Store',
config:{
..............
}
});????
where do you do this??
-
19 Mar 2012 3:00 PM #95
setStore not working
setStore not working
I have a related issue. My store is created and doing fine. But the setStore(store) has no effect. If I set the same store in the ux.touch.grid.View config: { store: ... } things work.
I had setStore() working in PR4 or some older version.
Any glue where the break might be?
-sakari
-
19 Mar 2012 11:04 PM #96
Its in store folder in Stores file as below,
Code:Ext.define('MyApp.store.Stores', { extend: 'Ext.data.Store', requires: 'MyApp.model.Stores', config: { autoLoad: true, storeId: 'Stores', model: 'Sushi.model.Stores', proxy: { type: 'ajax', url: 'data/storesData.json', reader: { type: 'json' } } } });
-
20 Mar 2012 4:47 AM #97Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
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.
-
22 Mar 2012 11:43 PM #98
hi mitchellsimoens,
Is it possible to toggle column?
It's an awesome feature in old version.
Regards
-
23 Mar 2012 4:24 AM #99Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
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.
-
26 Mar 2012 12:53 PM #100
Mitchell,
I've been playing around with your touch grid component and I've run across a problem that I'm not sure how to address. I have a component which has a definition like this:
I instantiate and display this view as a view which gets pushed on to a NavigationView. I create the view and do a push and the view displays correctly. I click the back button and try again and it fails. I used your suggestion in a different thread to recreate the view each time since it should have been auto destroyed. However, when I try to create a new instance the creation fails when it tries to initialize the features. Instead of having the 'ftype' of 'Ext.ux.touch.grid.feature.Sorter', the features property contains an object with a grid property and the launchFn, not an ftype and a launchFn. When it tries to initialize things the ftype is undefined and I get an 'Invalid class name or alias 'undefined' specified, must be a non-empty string'. I tried a little bit of debugging and noticed that the 'destroyFeatures' method does not seem to be called. If the view is destroyed, is this method supposed to be called?Code:Ext.define('Foo.view.MyList', { extend:'Ext.ux.touch.grid.View', xtype: 'mylist', requires: [ 'Ext.ux.touch.grid.View', 'Ext.ux.touch.grid.feature.Feature', 'Ext.ux.touch.grid.feature.Sorter' ], config: { cls: 'mycls touchgridpanel', features: [ { ftype: 'Ext.ux.touch.grid.feature.Sorter', launchFn: 'initialize' } ], columns: [ ... ] }
Thanks.
Jim


Reply With Quote