Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47

Thread: Multi level grouping, summary and grand totals for Ext JS 4.2

  1. #11
    Sencha User
    Join Date
    Aug 2010
    Posts
    1

    Default

    i have a problem with this plugin/extension, and getting the following error message:

    [E] Ext.util.Observable.addListener(): No function passed for event Ext.ux.grid.plugin.grouping.Column.afterlayout

    I'll really appreciate your help.

    best regards;

  2. #12
    Sencha Premium User
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    159

    Default

    Quote Originally Posted by hemelend View Post
    i have a problem with this plugin/extension, and getting the following error message:

    [E] Ext.util.Observable.addListener(): No function passed for event Ext.ux.grid.plugin.grouping.Column.afterlayout

    I'll really appreciate your help.

    best regards;
    I assume you downloaded the source code from my Github account (there you will find the latest code). If so, please provide an example when this error is raised.
    Thanks!

  3. #13

    Default

    I think that the error occurs because of a missing function on the Column.js file:

    Code:
    afterRender: function(){
        var me = this;
            
        me.callParent();
    
        me.mon(me.getTargetEl(), {
            scope: me,
            click: me.handleGroupColClick
        });
            
        me.mon(me, 'afterlayout', me.showGroupByText, me);
    },
    The showGroupByText function is missing I believe. I commented that line and it worked for me.

  4. #14

    Default For Extjs 4.2.2

    This plugin not working for me. I used ext-all.js 4.2.2 version

  5. #15
    Sencha User
    Join Date
    May 2013
    Posts
    7

    Default Using this plugin Single Page web application

    Hi There,

    Great Job Nice work.

    I went into a scenario where i have to generate multi level grouping report with different parameters. Every time when i pass a different parameter it opens report in different tab.

    Problem here is group name remains same causing issues.

    I believe solution is to generate unique groupid (Not only based on group title).

    Any help will be greatly appreciated.

    Thanks

  6. #16
    Sencha Premium User
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    159

    Default

    Quote Originally Posted by prasi.be View Post
    Hi There,

    Great Job Nice work.

    I went into a scenario where i have to generate multi level grouping report with different parameters. Every time when i pass a different parameter it opens report in different tab.

    Problem here is group name remains same causing issues.

    I believe solution is to generate unique groupid (Not only based on group title).

    Any help will be greatly appreciated.

    Thanks
    I don't really have the time now to look into this but if you can debug it and find a fix it would be great to commit it in the github project.
    Thanks

  7. #17
    Sencha User
    Join Date
    May 2013
    Posts
    7

    Default

    Hi ateodorescu,Sure will do that. Little guidance from your side will be great. In the groupTpl it is mentioned that '

  8. #18
    Sencha User
    Join Date
    May 2013
    Posts
    7

    Default

    Hi ateodorescu,


    Sure will do that. Little guidance from your side will be great. In groupTpl it is mentioned that

    HTML Code:
    <div id="{groupId}"
    which is breaking ui when there is one more grid with same group name. I am trying to prepend id of grid view with groupId. grid view id will be unique for all the grids in the view port.

    I tried to add grid viewid in the function getGroupKey as below. Id problem is solved but no information is not being displayed :-(.

    If i am not in right direction please correct me. Or am i missing any dependency ? kindly shed some light.

    HTML Code:
    getGroupKey: function (record, groupers) 
    {       if (!groupers) {            
    groupers = this.view.store.groupers.getRange();        
    }      
      var groupersCount = groupers.length, i, keys = [];
    
    for (i = 0; i < groupersCount; i++) {        var k =groupers[i].getGroupString(record);           
     if(k!="")                
     k=this.view.getId()+'_'+k;                          
      keys.push(k);       }       
     return this.formatKey.apply(this, keys);    }


  9. #19
    Sencha Premium User
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    159

    Default

    Please provide steps to replicate this issue. An example would be great. I don't really understand what you mean.

    Thanks,
    Adrian

  10. #20
    Sencha User
    Join Date
    May 2013
    Posts
    7

    Default

    Hi Adrian,

    My Problem statement is "Having two multi level grouping grid with same group headers in a same page creating issues".

    After debugging i saw that group header div id is same as group header name(multiple div with same id in a single html page) which is creating problem.

    In above post i explained how i was trying to make div header id unique using grid view id.

    Any clues will be greatly appreciated.

    Thanks,
    Prasanna.S

Page 2 of 5 FirstFirst 1234 ... LastLast

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
  •