1. #31
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    Quote Originally Posted by Animal View Post
    And?

    Is this how you create apps?

    See an error, throw your hands up and get "teh interwebs" to do your debugging?

    Again, what debugging have you done?
    What Nigel is alluding to is the fact that Ext.grid.Column does *not exist* in Ext JS 2.x.

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.

  2. #32
    Ext User
    Join Date
    May 2010
    Posts
    4
    Vote Rating
    0
    gijo,mk is on a distinguished road

      0  

    Default


    hi

    sorry for putting this up in the forum.
    but i don't know how to proceed.
    i am a beginner in javascript and completely new to ext-js.

    in my error console i can see the error is in ext-base.js line9.
    but the file is not easily readable.

    i am getting the error, even after i reduced my code to
    Ext.ux.ProgressColumn = Ext.extend(Ext.grid.Column, { });

    how can i proceed debugging from here?

    thanks

  3. #33
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    41
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Use ext-base-debug.js and ext-all-debug.js for debugging!

  4. #34
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,169
    Vote Rating
    28
    jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough jay@moduscreate.com is a jewel in the rough

      0  

    Default


    Quote Originally Posted by jgarcia@tdg-i.com View Post
    What Nigel is alluding to is the fact that Ext.grid.Column does *not exist* in Ext JS 2.x.

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.

  5. #35
    Ext User
    Join Date
    Jun 2008
    Location
    Menden, Germany
    Posts
    25
    Vote Rating
    0
    Besessener is on a distinguished road

      0  

    Default


    For my use i added a new attribute:
    PHP Code:
      /**
       * @cfg {boolean} invertedColor if timespan is used
       */
      
    invertedColor false 
    and changed the colored-part to this:
    PHP Code:
        if (this.colored == true) {
            if(
    this.invertedColor == true) {
              if (
    66)
                
    style '-red';
              if (
    67 && 33)
                
    style '-orange';
              if (
    34)
                
    style '-green';
            }
            else {
              if (
    <= 100 && 66)
                
    style '-green';
              if (
    67 && 33)
                
    style '-orange';
              if (
    34)
                
    style '-red';
            }
        } 
    So it demonstrates better the time that approachs.
    i.e. 99% of the time between now and endtime of a project is critical -> red !

  6. #36
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    293
    Vote Rating
    0
    talha06 is on a distinguished road

      0  

    Question


    great extension indeed.. Thank u so much Animal.. I just want to ask is it compatible with Grouping Grid? I tried to use, but I wasn't able to see any changes in the cell?
    I'll be happy if someone helps me..
    Thanks in advance..
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  7. #37
    Sencha User
    Join Date
    Aug 2008
    Posts
    16
    Vote Rating
    0
    cyberal is on a distinguished road

      0  

    Default


    Hi,

    Thank you for this good extension.

    In my project I need to choose the color of the progress bar in function of an other column, to do this I have changed the initial code, it seems to me to be good to integrate this update in the original version:
    My little modifications are in bold.
    Code:
    getBarClass: function(fraction, value, meta, record, rowIndex, colIndex, store) {
       return (fraction > 0.98) ? 'high' : (fraction > 0.75) ? 'medium' : 'low';
    }
    
    // private
        renderer: function(value, meta, record, rowIndex, colIndex, store) {
            var fraction = this.getFraction.apply(this, arguments),
                pct = fraction * 100,
                displayVal;
    
    
            Array.prototype.push.call(arguments, pct);
            displayVal = this.baseRenderer.apply(this, arguments);
            if (record) {
                meta.css += ' x-grid3-td-progress-cell';
                return this.tpl.apply({
                    align: this.align || 'left',
                    value: displayVal,
                    pct: fraction * 100,
                    qtip: this.getQtip.apply(this, arguments),
                    cls: this.getBarClass(fraction, value, meta, record, rowIndex, colIndex, store)
                });
            } else {
                return displayVal;
            }
        }
    Bye and again thank you for this plugin
    Cyberal

  8. #38
    Sencha User
    Join Date
    Jun 2011
    Posts
    6
    Vote Rating
    0
    fvchapa is on a distinguished road

      0  

    Default p is null

    p is null


    Hi!...this is error when integrate whit grouping and summay

    p is null

    line 148

    display bar good in grid but not in summary row.

    Any suguestions?

    sorry my bad inglish.

  9. #39
    Sencha User
    Join Date
    Jul 2007
    Posts
    7
    Vote Rating
    0
    yuiman is on a distinguished road

      0  

    Default Ext JS 4.1.0

    Ext JS 4.1.0


    Anyone have this plugin working with 4.1.0?

    - Joe