Results 1 to 3 of 3

Thread: Binding to 'ui' causes error

    You found a bug! We've classified it as EXTJS-23149 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Aug 2016

    Default Binding to 'ui' causes error

    Ext version tested:

    • Ext 6.2 rev 807

    Browser versions tested against:

    • Chrome 52.02743.116
    • Firefox 48.02


    • Binding a component's 'ui' to data in a view model does not work correctly because there is a missing setUi method.
    • The method on Ext.Component is setUI rather than setUi, which is required for the binding to work.

    Steps to reproduce the problem:

    • Create a view that binds 'ui' to a value in a view model

    The result that was expected:

    • The ui specified in the view model should have been applied to the component

    The result that occurs instead:

    • The ui did not apply and an error appeared in the console because setUi is not a method

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Central Ohio


    I have linked the bug report to this thread. Thank you for sharing!
    Tristan Lee
    Sencha Inc - Sustaining Engineer

    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

  3. #3
    Sencha User
    Join Date
    Apr 2016
    Noida, India


    I'm using Extjs 6.5.0 and this bug is still not resolved. I'm using below override as workaround :

    Ext.define('App.overrides.Button', { override: 'Ext.button.Button',
    setUi: function (ui) {
    var me = this;
    // workaround for BUG in Extjs 6.5.
    // while applying bind for ui config, the setter name lookup is done by setUi instead of setUI
    if (me.scale && !ui.match(me.scale)) {
    ui = ui + '-' + me.scale;


Similar Threads

  1. [FIXED] Form Data Binding Error on Model Change
    By mlmcconnell in forum Sencha Architect 3.x: Bugs
    Replies: 1
    Last Post: 24 Sep 2013, 5:27 AM
  2. MVC Model to view binding with error handling
    By robert.peszek in forum Ext: Discussion
    Replies: 0
    Last Post: 20 Jan 2012, 1:29 PM
  3. Basic Binding (UiBinder) error
    By irisindigo in forum Sencha GXT Bugs
    Replies: 0
    Last Post: 16 Jan 2012, 2:00 PM
  4. Deferred Binding error when trying to create a new Grid
    By thedamhattter in forum Sencha GXT Bugs
    Replies: 2
    Last Post: 27 Oct 2011, 7:22 AM
  5. Runtime error -deferred binding
    By karunakar in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 27 Nov 2008, 3:19 AM

Posting Permissions

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