Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Oct 2009
    Posts
    5
    Vote Rating
    0
    SebOggy is on a distinguished road

      0  

    Default [FIXED-288][3.0.0] Bug emptyGroupText ?

    [FIXED-288][3.0.0] Bug emptyGroupText ?


    Hello,
    (First of all sorry for my english)

    I tested grouping.js from the examples in Ext-3.0.0 with the add of the option emptyGroupText
    Result : when there is an empty group value, no text is displaying
    (it works very well in Ext-2.2)

    Here is my test :

    In grouping.js, I only replaced

    Code:
     
    Ext.grid.dummyData = [
        ['3m Co',71.72,0.02,0.03,'4/2 12:00am', 'Manufacturing'],
    by
    Code:
     
    Ext.grid.dummyData = [
        ['3m Co',71.72,0.02,0.03,'4/2 12:00am', ''],
    And
    Code:
    view: new Ext.grid.GroupingView({
                forceFit:true, 
                groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})'
            }),
    by
    Code:
     
    view: new Ext.grid.GroupingView({
                forceFit:true,        
                emptyGroupText: '#### Empty',
                showGroupName: false
            }),
    The text #### Empty is displaying for the company 3m co in 2.2, not in 3.0.0

    See the Attached Images

    Have an idea ? Thanks
    Attached Images

  2. #2
    Ext User
    Join Date
    Oct 2009
    Posts
    5
    Vote Rating
    0
    SebOggy is on a distinguished road

      0  

    Default


    I have found a temporary solution by adding this lines :

    Code:
     
    Ext.onReady(function(){
        Ext.QuickTips.init();
     
        var xg = Ext.grid;
     
        function renderEmpty(val) {
             return val;
        }
     
        ...
        {header: "Industry", width: 20, sortable: true, dataIndex: 'industry', renderer: renderEmpty},
        ...
    And now, the value #### Empty appears in the empty group

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,641
    Vote Rating
    582
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fix applied to svn in rev #5466 for patch release 3.0.3.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Ext User
    Join Date
    Oct 2009
    Posts
    5
    Vote Rating
    0
    SebOggy is on a distinguished road

      0  

    Default


    Ok, thanks

Thread Participants: 1