Results 1 to 6 of 6

Thread: Grid, Column setText() removes sort icons

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-20019 in 5.1.3.
  1. #1
    Sencha User
    Join Date
    Oct 2015
    Posts
    37

    Default Grid, Column setText() removes sort icons

    Hello,


    The problem is when you try to use setText() it removes sort icons (not visible anymore for that column).
    Code:
                      listeners: {
                        headerclick: function(header, column, e, t, eOpts) {
                            if (column.dataIndex == 'name' && column.text.length < 7)
                                column.setText(column.text + '-updated');
                        }
                    }
    When checked HTML, I saw that after setText() gets executed, class is changed from:
    Code:
    x-column-header-text-inner
    to:
    Code:
     x-column-header-text
    test1.PNG

    As you can see in class name -inner is missing. After I add that through FireBug it works fine.

    test2.PNG

    When checked with ExtJs 5 it seemed like it works fine there, but doesn't work on 6.0.1.
    Here is a full code: https://fiddle.sencha.com/#fiddle/12f6


    Any workarounds?


    M

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Oct 2015
    Posts
    37

    Default

    I see that you marked this bug with:

    Code:
    Success!  Looks like we've fixed this one.  According to our records the fix was applied for  EXTJS-20019  in  5.1.3.  
    But can you have a look into my fiddle (which I provided before too)? Here it is again: https://fiddle.sencha.com/#fiddle/12f6

    It does work with Ext JS 5.1.1.451 Neptune (partly, as on mouseover it gets button on top of it (arrow)), but you messed up somewhere again as this bug is back in Ext JS 6.0.1.250 Neptune Classic.

    Ext JS 6.0.1.250 Neptune Classic
    Bug1.jpg

    Ext JS 5.1.1.451 Neptune

    bug2.jpg
    Ext JS 5.1.1.451 Neptune with MouseOver
    bug3.jpg





    Can you reopen this bug?

  4. #4
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    The same issue also showed up in 5.1.2, as well 6.0.1. The fix has been applied for the next 5.x and 6.x version. For some reason the message above is only reporting the first fixed version.

  5. #5
    Sencha Premium User
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    174

    Default

    For everybody having the same problem here goes (until we get Ext 5.1.3 if ever)

    Ext.define('MyApp.monkeypatches.Column', {
    override:'Ext.grid.column.Column',
    setText:function()
    {
    var me = this;
    me.callOverridden(arguments);
    me.textEl.addCls('x-column-header-text-inner');
    }
    });

  6. #6
    Sencha Premium User
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    174

    Default

    Oh and pretty please could you fix your godawful Forum Software?It's messing with formatting and for some reason mine is in Spanish which i habla solo un pocito...

Similar Threads

  1. Grid column sort with remote sort/paging
    By izzy501 in forum Ext 5: Q&A
    Replies: 3
    Last Post: 4 Dec 2018, 4:53 AM
  2. Replies: 6
    Last Post: 29 Oct 2013, 1:28 PM
  3. Replies: 1
    Last Post: 11 Jul 2011, 3:13 PM
  4. Grid Header Sort icons
    By kaushikGXT in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 22 Dec 2010, 12:41 PM
  5. setMenuDisabled(true) removes mouse-over on grid column headers.
    By minusForty in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 9 Jun 2010, 2:33 PM

Tags for this Thread

Posting Permissions

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