-
9 Apr 2012 4:36 AM #21
-
10 May 2012 12:35 PM #22
-
9 Nov 2012 1:03 AM #23
Is there anyway to render Ext components in a dataview without a defered render?
Is there anyway to render Ext components in a dataview without a defered render?
Defered render is eating my time out

-
17 Feb 2013 11:46 PM #24
First of all, thank you all for sharing your experience!
Interesting! It means that the "XTypes and Lazy Instantiation" chapter of this guide should be corrected.
http://docs.sencha.com/ext-js/4-1/#!/guide/components
For example, it says the following in the comments within the code sample.
Maybe, it just mixes up the "instantiation" and "rendering" terms?// Explicitly define the xtype of this Component configuration.
// This tells the Container (the tab panel in this case)
// to instantiate a Ext.panel.Panel when it deems necessary
Anyway, your statement and the guide conflict
-
18 Feb 2013 9:10 AM #25Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
No, it will instantiate when needed, when the parent container is created it needs to have it's children instantiated. If you have this:
So the field instance is of course not created because there is no instance of MyForm. So if we create an instance of MyForm:Code:Ext.define('MyForm', { extend : 'Ext.form.Panel', xtype : 'myform', items : [ { xtype : 'textfield', fieldLabel : 'One' } ] });
It will create the instance of the field automatically. Notice I didn't tell MyForm to render at all but the field instance will be created. The child items are not instantiated on rendering, they are instantiated when the container is instantiated.Code:Ext.create('MyForm');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.
-
18 Feb 2013 10:00 PM #26
Mitchell, thank you for the clarification! It is clear.
Though, I think, the guide really can lead to some misunderstanding. For example, here:
Instantiating a Container causes its children to be instantiated. So, I am not sure what "until the Container determines it is necessary" really means. Is "rendering" meant here?This is where xtypes come in handy by allowing a Container's children to be configured up front, but not instantiated until the Container determines it is necessary.
Or, maybe, it is all about the class definition? Well, yes, I expect all to be not instantiated just after the class definition
Well, generally, all seems clear for me now. Just I am talking about some inconsistency in the guide.
-
19 Feb 2013 6:59 AM #27Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
No, rendering is not meant. When you are defining a class, you wouldn't want instances to be made until that class is created so xtypes are handy for that.
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 Feb 2013 7:23 AM #28
-
19 Feb 2013 7:26 AM #29Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- 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.
-
19 Feb 2013 7:31 AM #30


Reply With Quote