Issue with GridPanel grouping Column

  1. #1

    Issue with GridPanel grouping Column

    Hi,

    For earlier versions of Ext.Net , we were using column.GroupRenderer to set group text but with new version we tried a lot to set custom group text but its not working.We are preparing columnModel dynamically from codebehind and were setting GroupRenderer for column.
          col = new Column();
          col.ColumnID = "ProductName";
          col.Header = "Product";
          col.DataIndex = "ProductName";
          col.Width = 230;
          col.Fixed = false;
          col.Sortable = true;
          col.Hideable = false;
          col.Groupable = false;
          grid.ColumnModel.Columns.Add(col);
    
          col = new Column();
          col.ColumnID = "YearLevel";
          col.Header = "Years";
          col.DataIndex = "YearLevel";
          col.Sortable = true;
          col.Groupable = true;
          col.GroupName = "Product Type";
          col.GroupRenderer.Fn = "RenderYearLevel";
          col.Renderer.Fn = "RenderYearLevelForUL";
          //col.Width = 50;
          grid.ColumnModel.Columns.Add(col);
     <script type="text/javascript">
      var RenderYearLevel=function(val){ if(parseInt(val)>=90){ return "UL to Age "+val;}else{ return val+" Year Level Term";}}
    </script>
    I tried to implement the same functionality through GroupHeaderTplString but it didn't work for me. Please help me.
    I want the functionality like screenshot attached with this post. Click image for larger version. 

Name:	grouping.JPG 
Views:	14 
Size:	58.3 KB 
ID:	6340

    I am really very disappointed as i am not getting solutions from support team for my problems.
    Last edited by rishu; Jun 11, 2013 at 11:22 AM.

Similar Threads

  1. [CLOSED] Grouping with Multiple Column in GridPanel
    By shaileshsakaria in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 10, 2013, 11:11 AM
  2. GridPanel grouping issue
    By milenios in forum 2.x Help
    Replies: 2
    Last Post: Aug 07, 2012, 6:58 PM
  3. [CLOSED] [1.0] GridPanel issue with Grouping and Column Alignment
    By schimkem in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 30, 2010, 2:09 PM
  4. Replies: 0
    Last Post: Feb 17, 2010, 5:38 AM
  5. [CLOSED] Remote grouping or grouping summary for GridPanel
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 08, 2009, 10:23 PM

Posting Permissions