Results 1 to 3 of 3

Thread: GroupingView getRowClass not working?

  1. #1

    Default GroupingView getRowClass not working?

    Hi,

    Does anybody know how to use the getRowClass to modify certain rows in the EditorGridPanel with the grouping view??



    Thanx,


    this.view = new Ext.grid.GroupingView({
    enableRowBody: true,
    forceFit:true,
    showGroupName: false,
    // hideGroupedColumn: true, // enable this will cause an issue with group column
    groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})',
    getRowClass: this.applyRowClass,
    }),


    Ext.extend(qadb.testcase.tcDetail,Ext.grid.EditorGridPanel, {

    applyRowClass: function(record, rowIndex, p, ds) {
    alert('here');
    //if (this.showPreview) {
    // var xf = Ext.util.Format;
    // p.body = '<p>' + xf.ellipsis(xf.stripTags(record.data.description), 200) + '</p>';
    return 'x-grid3-row-expanded';
    //}
    //return 'x-grid3-row-collapsed';
    },
    :
    :

  2. #2
    Sencha Premium Member MichaelOstrovsky's Avatar
    Join Date
    May 2008
    Location
    Tel Aviv, Israel
    Posts
    144

    Default

    I have same problem.
    anyone ?

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    In the Grid config

    Code:
    viewConfig: {
        getRowClass: function() {}
    }
    Or in the GridView config just opke a function in.

    easy as that

Posting Permissions

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