Results 1 to 3 of 3

Thread: checkbox in form

  1. #1
    Sencha User
    Join Date
    Jun 2018

    Default checkbox in form


    Strange error. have in from panel checkboxfield

    				xtype: 'checkboxfield', 
    				name: 'allowsend',
    				checked: true,
    				fieldLabel: 'blablabla'
    make window with form

        var myWin = new Ext.Window({        id     : 'myWin',
    		title: '123',
            //height : 400,
            width  : 400,
    		autoDestroy: true,
            items  : [formPanel]
    i have an error

    Uncaught TypeError: Cannot set property 'component' of null

    what's wrong?????

    If i remove definition of field - all good

  2. #2
    Sencha Premium User danguba's Avatar
    Join Date
    Feb 2009
    Kragujevac, Serbia


    Could you provide fiddle for this at
    All Best
    Željko Mitrović

    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." Martin Golding

  3. #3
    Sencha User
    Join Date
    Jun 2018


    it was because in form viewModel was set. and no model class in prog.
    why Extjs not warn correctly?
    eg: class MyViewModel not found?

Similar Threads

  1. calling reset on Form with Checkbox before form is rendered first time
    By bugfree in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 14 May 2011, 2:38 PM
  2. Replies: 2
    Last Post: 22 Jul 2010, 6:33 AM
  3. Ext.form.Checkbox add form problem
    By Cyberangel67 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 11 Aug 2009, 9:25 PM
  4. Add checkbox to Form, does not update on form.load
    By hobbes in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 10 Mar 2009, 7:13 AM
  5. How to set checkbox state in form with form.load() ?
    By zoq in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 13 Jun 2007, 9:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts