PDA

View Full Version : Ext.selection.CheckboxModel - header is null



muselmanach
28 Sep 2011, 9:06 AM
Hello!

I get this message, creating an Checkbox Selection Model:
"Header is null"

Is there anyway to set an header?

I tried:

new Ext.selection.CheckboxModel({text:'randomText'});

new Ext.selection.CheckboxModel({header: 'randomText'});

But nothing worked.

Any Ideas?

Edit:

I dont geht the failure message when i am using:

new Ext.selection.CheckboxModel({injectCheckbox: false});

But i need the checkboxes

muselmanach
29 Sep 2011, 3:52 PM
anyone?

skirtle
5 Oct 2011, 7:57 AM
To set a header I think you'd need to override this method:

http://docs.sencha.com/ext-js/4-0/source/CheckboxModel.html#Ext-selection-CheckboxModel-method-getHeaderConfig

However, this doesn't really address the problem of that error message. Could you post a complete test case and your exact ExtJS version? The full stacktrace with line numbers would also be very useful (make sure you're using a debug version of ExtJS for meaningful line numbers).

I had a look through the bugs forum but the closest I could find was this:

http://www.sencha.com/forum/showthread.php?141633

Similar but not quite the same. The fact that I couldn't find a known bug for this suggests that this probably isn't a bug in the CheckboxModel and that you've done something subtly wrong.

muselmanach
6 Oct 2011, 12:12 PM
That is the exact same problem i have (but instead of a window i close and reopen a panel within a tabpanel):

http://www.sencha.com/forum/showthread.php?141633