-
5 Apr 2012 3:30 AM #1
Checkcolumn throws error on IE when used within a window
Checkcolumn throws error on IE when used within a window
REQUIRED INFORMATION Ext version tested:
- Ext 4.0.7
- IE8
- FF3
- Clicking on a CheckBox that is displayed in a grid within a window causes an error.
- The error only appears when the page is viewed with IE. No errors with FF.
- Create a Grid with a checkcolumn
- Create a window that has the grid as items
- Display the window
- Check/Uncheck the Checkbox
- Status of the CheckBox should chnage to Checked/Unchecked withou error
- Status of the CheckBox changes with the error "'style' is null or no object
This is just a simplified Example.
HELPFUL INFORMATIONCode:Ext.define('modCars', { extend: 'Ext.data.Model', fields: [ { name: 'Id', type: 'int' }, { name: 'Brand', type: 'string' }, { name: 'Model', type: 'string' }, { name: 'available', type: 'bool'}] }); var cars = Ext.create('Ext.data.Store', { model: 'modCars', data: [ { Id: '1', Brand: 'BMW', Model: '1' }, { Id: '2', Brand: 'BMW', Model: '3' }, { Id: '3', Brand: 'BMW', Model: '5' }, { Id: '4', Brand: 'BMW', Model: '7' } ] }); var gridCars = Ext.create('Ext.grid.Panel', { store: cars , selModel: { selType: 'cellmodel' } , anchor: '100%, 100%' , plugins: [cellEditing] , columns: [ { xtype: 'checkcolumn' , header: ' ' , dataIndex: 'available' , width: 50 } , { text: 'Id' , dataIndex: 'Id' } , { text: 'Brand' , dataIndex: 'Brand' } , { text: 'Model' , dataIndex: 'Model' } ] , dockedItems: [ { dock: 'bottom', xtype: 'toolbar', items: [ { text: Localize('All') , handler: function () { autos.each(function (record) { record.set('available', true); }); } } , { text: Localize('None') , handler: function () { autos.each(function (record) { record.set('available', false); }); } } ] } ] }); var windowCars = Ext.createWidget('window', { title: Localize('Cars') , closable: true , closeAction: 'hide' , resizable: false , width: 350 , height: 350 , layout: 'anchor' , bodyBorder: false , bodyStyle: 'padding: 5px;' , items: [gridCars] }); Ext.define('clsFrmCars', { extend: 'Ext.form.Panel', layout: 'anchor', initComponent: function () { this.items = [ { xtype: 'container', items: [ { xtype: 'button', text: 'Show Window', handler: function() { windowCars.show(); } } ] } ] clsFrmCars.superclass.initComponent.call(this); } });
Screenshot or Video:
Possible fix:- not provided
Operating System:- Win7 Enterprise
-
5 Apr 2012 10:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
Have you checked against 4.1.0 RC2 (our latest release)? I cannot reproduce.
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 Nov 2012 5:06 AM #3
exactly the same error!
exactly the same error!
I am using Ext 4.0.7 as well and am having the same error. I have 3 checkcolumns, which are in a grid, which in turn is in a fieldset, which in turn is in a formpanel, which in turn is in a window. I have noticed though that if the formpanel is NOT exclosed in a window, no error is thrown when a checkbox in a checkcolumn is clicked. However, I need to enclose the formpanel in a window. @mitchellsimoens: you recommend using 4.1.0 RC2. I read the list of Bugs Fixed under that release and this one is not mentioned.
-
20 Nov 2012 5:11 AM #4
I just checked it against ext-4.1-rc3. Now I see the following text/message at the bottom left hand corner of the screen : "Logged Errors: 1 Warnings: 0 Info: 0 Log: 0" (see attached screenshot). What does this mean? Should this text appear there? Even if the grid with checkcolumns is left out of the fieldset or the formPanel is displayed on its own (without the window), the message is visible.
Last edited by anitacynax; 20 Nov 2012 at 5:36 AM. Reason: elaboration
-
20 Nov 2012 3:34 PM #5
rc3 was quite a long time ago. I tried the test case with 4.1.3 in IE and there is no error. You can grab it from the support portal. Marking as closed.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
21 Nov 2012 11:55 PM #6
Thanks evant. I logged into he support portal but am unable to download Ext JS 4.1.3 - it says "IE cannot download ext-4.1.3.zip from support.sencha.com. The file could not be written to the cache".
EDIT: Though I was unable to download Ext JS 4.1.3 in IE (it gave the above error message), I was able to do so using Firefox. Now there are no more errors when checkbox in checkcolumn is checked/unchecked.Last edited by anitacynax; 22 Nov 2012 at 12:32 AM. Reason: update
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote