Results 1 to 2 of 2

Thread: Ext.grid.column.Widget.bindDataIndex not set correctly

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Heidelberg, Germany
    Posts
    78

    Default Ext.grid.column.Widget.bindDataIndex not set correctly

    According to the docs, a widget column can bind the value of a column's dataIndex to the widget's defaultBindProperty. (though this is deprecated behaviour). From my understanding of the docs and according to a comment in the code of Ext.grid.column.Widget.beforeRender, this should only happen, if the widget does not specify a bind property. To distinguish the two cases the Widget class has a boolean field bindDataIndex. However, bindDataIndex is set to true, even if the widget does specify a binding. See the following fiddle: https://fiddle.sencha.com/#view/editor&fiddle/2uek

    This leads to an unnecessary binding to be created.

    The problem is in Ext.grid.column.Widget.beforeRender. The fiddle proposes a fix that you can test by removing the comments.

  2. #2
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    542

    Default

    Hello,

    Thank you for contacting Sencha Support!

    This issue has been registered as a bug under reference number EXTJS-28611. I also appreciate the fix you have mentioned in the fiddle.

    Regards,
    Kumar
    Sencha Support.

Posting Permissions

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