Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default renderTpl on ComboBox causes crash

    renderTpl on ComboBox causes crash


    renderTpl on ComboBox causes fatal error

    Designer version tested:
    • Designer 1.2.0
    Operating System:
    • Win7
    Framework:
    • Ext JS 4.0.5
    Description / Steps to reproduce the problem::
    • Attempting to use renderTpl attribute and program fatally fails
    • Causes rendering in design to fail and I have to restart designer entirely

      • '<tpl for="."><div class="x-combo-list-item">',
        '{firstname} {lastname} ({email})',
        '</div></tpl>'
    • in code view it produces quoted code if using an object of strings.
      • me.renderTpl = Ext.create('Ext.XTemplate',
        '{\'<tpl for="."><div class="x-combo-list-item">\',',
        '\'{firstname} {lastname} ({email})\',',
        '\'</div></tpl>\'}'
        );
    • if using a string I get "TypeError: 'null' is not an object
      • <tpl for="."><div class="x-combo-list-item">{firstname} {lastname} ({email})</div></tpl>
    • Or messed up rendering and have to restart...
      • <div class="x-combo-list-item">{firstname} {lastname} ({email})</div>
    The result that was expected:
    • I would expect the system to throw an error message and null out the renderTpl if it fails.
    The result that occurs instead:
    • In Design Mode: fatally crashing the program either by error or bad rendering
    • Code Mode: just renders code as it would, no errors, but going to Design will cause the error if renderTpl is left that way.
    #2
    can anyone tell me how to get ComboBox to render multiple fields to displayField in Designer?
    no convert option for datastore field in designer. (that would be awesome)




  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report. We've opened a ticket to fix this.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    This is a non-issue. In 4.x, the BoundList is the DataView provider for the ComboBox field. Drag out a BoundList from the toolbox onto the ComboBox, which will provide the "listConfig" code generation on the ComboBox. You can then set the "tpl" config option on the BoundList to override the default tpl used by the ComboBox.

    See the docs for Ext.view.BoundList to know what item selectors to expect by default, etc.

  4. #4
    Ext JS Premium Member Artistan's Avatar
    Join Date
    Apr 2007
    Location
    MN
    Posts
    144
    Vote Rating
    0
    Artistan is on a distinguished road

      0  

    Default For others looking at Templated ComboBox using Designer

    For others looking at Templated ComboBox using Designer


    i set the tpl to this...
    Code:
    <ul><tpl for="."><li role="option" class="x-boundlist-item">{FirstName} {LastName} ({Reporting})</li></tpl></ul>
    Looks like it needs to be the unordered list with list items, role=option, and class = x-boundlist-item for the default functionality to work.

    itemSelector says required in docs, but not required in Designer! not sure what problems this may cause, but it is working for me.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar