-
1 Jun 2011 5:10 AM #171
I don't know if this has changed, but try to listen to the beforeadd-event of the tabpanel. Check in this function, if a tab with this id already exists and return false if it does. See: http://docs.sencha.com/ext-js/4-0/#/...vent-beforeadd
-- DaveToo lazy to add a clever signature
-
1 Jun 2011 6:03 AM #172
problem extending Ext.form.field.ComboBox?
problem extending Ext.form.field.ComboBox?
@Hainzl, Thank you for your prompt response.
I have another problem.
I am trying to extend Ext.form.field.ComboBox, however I get the following error when I try to add the extended Combo to a form:
This is on line 61802 of ExtJs4.1 ext-all-debug.js inside the renderActiveError method.Uncaught TypeError: Cannot read property 'dom' of null
Can you help me with this please?
Below is an example of my code:
The config.combodata for the store looks like below:Code:Ext.define('GenericCombo', { extend: 'Ext.form.field.ComboBox', alias: 'widget.genericcombo', //the constructor constructor: function(config) { var store = new Ext.data.JsonStore({ fields: ['Key', 'Value'], data : config.combodata || [] });//new Ext.data.Store Ext.apply(this, config, { store: store, displayField: 'Value', valueField: 'Key', queryMode: 'local', emptyText:'Select a value...' }); this.callParent([this]); }//end constructor });//end Ext.define
I instantiate the genericcombo like below:Code:"combodata":[ {"Key":"","Value":"<None>"}, {"Key":"!#","Value":"Dr"}, {"Key":"!$","Value":"Miss"} ]
Code:{ "anchor":"50%", "autoScroll":false, "border":false, "combodata":[ {"Key":"","Value":"<None>"}, {"Key":"!#","Value":"Dr"} ], "fieldLabel":"Title", "name":"3820", "value":"!)", "xtype":"genericcombo" }
-
1 Jun 2011 6:16 AM #173
Hmm, the only thing I notice is that you use
at the end of the constructor. As far as I know, the new way of calling the parent method isCode:this.callParent([this]);
but I may be wrong, and maybe this is not your problem, but you could tryCode:this.callParent(arguments);

-- DaveToo lazy to add a clever signature
-
1 Jun 2011 6:23 AM #174
Solved my problem Hainzl
Solved my problem Hainzl
@Hainzl: Thanks very much I have been trying to solve that for ages. Little did I know, It was something so simple.

-
1 Jun 2011 7:06 AM #175
tpl for combobox
tpl for combobox
I have a combo box which holds values like <None> <All> Which beacause of the <> do not display in the combo box.
In ExtJs3 I solved the problem with the following line:
This answer and further discussion can be foundCode:tpl: '<tpl for="."><div class="x-combo-list-item">{Value:htmlEncode}</div></tpl>'
http://www.sencha.com/forum/showthre...a-lt-select-gt
I have tried the below in ExtJs 4 but does not work
Any ideas?Code:tpl:'<tpl for="."><div class="x-boundlist-item">{Value:htmlEncode}</div></tpl>'
-
1 Jun 2011 2:54 PM #176
-
1 Jun 2011 7:13 PM #177
API documentation quality
API documentation quality
This is just for the Sencha team. Guys, you really need to update your API documentation - SO MANY configuration options have been omitted! One needs to constantly look at the code to find out what to do when migrating an application. There are mistakes in the API documentation too.
-
1 Jun 2011 8:15 PM #178
We are constantly working to try and improve the docs. If you can suggest specific improvements or specific API calls that are missing or incorrect, please post those separately to the bugs forum and we'll be sure to get them fixed.
-
2 Jun 2011 5:36 AM #179
Modal window masks everything in extjs4?
Modal window masks everything in extjs4?
In ExtJs3 I created a window like below:
Because I used the windows renderTO property, this would cause whatever the window has been rendered to, to be masked.Code:var window = new Ext.Window({ title: 'My Window' ..... renderTo: 'panel.getEl()' modal: true }); window.show()
However if I do the same in ExtJs 4, the whole screen gets masked regardless of what I have rendered the window to?
-
3 Jun 2011 7:09 AM #180
If you application extends some Ext panel and it has internally configured options (defaults) which does not require the 'new' call to pass any config options, you will still have to pass on a blank config object. Because the Ext.Compat intercepts the constructors before you component is called.
PHP Code:someCustomCmp = new MyApp.MyPanel( {} ); //pass a blank obj, even if your custom obj contains all the required values to call it's parent component.
You found a bug! We've classified it as
a bug in our system.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
Similar Threads
-
Migration to 3.0
By tillda in forum Community DiscussionReplies: 5Last Post: 17 Aug 2009, 7:19 AM -
Migration to 2.0
By scaswell1 in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 7 Jul 2009, 9:56 PM -
migration 1.0 to 3.0
By alien3d in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 1 Jun 2009, 5:38 AM -
Migration GXT 1.2.4 to 2.0
By G.edwin in forum Ext GWT: Help & Discussion (1.x)Replies: 2Last Post: 15 May 2009, 6:26 AM


Reply With Quote