ui.igGridGroupBy

ui.igGridGroupBy_image

igGrid コントロールおよび igHierarchicalGrid コントロールはどちらも、グリッド内の列グループ機能を備えています。グループ機能を使用するとユーザーは、グリッド内のデータの行を共通の列値でグループ化できます。この API のクラス、オプション、イベント、メソッド、およびテーマに関するさらに詳しい情報は上の関連するタブの下で入手可能です。

次のコード スニペットは、igGrid コントロールを初期化する方法を示します。

この API を使用した作業方法の詳細についてはここをクリックしてください。igGrid コントロールの必要なスクリプトおよびテーマを参照する方法については、 「Ignite UI で JavaScript リソースを使用する」および Ignite UI のスタイル設定とテーマを参照してください。

コード サンプル

<!doctype html>
<html>
<head>
    <title>Ignite UI igGridGroupBy</title>
    <!-- Infragistics Combined CSS -->
    <link href="css/themes/infragistics/infragistics.theme.css" rel="stylesheet" type="text/css" />
    <link href="css/structure/infragistics.css" rel="stylesheet" type="text/css" />
    <!-- jQuery Core -->
    <script src="js/jquery.js" type="text/javascript"></script>
    <!-- jQuery UI -->
    <script src="js/jquery-ui.js" type="text/javascript"></script>
	  <script src="js/infragistics.core.js" type="text/javascript"></script>
	  <script src="js/infragistics.lob.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var products = [
                      { "ProductID": 1, "ProductGroup": "9001", "Name": "Adjustable Race", "ProductNumber": "AR-5381" },
                      { "ProductID": 2, "ProductGroup": "9001", "Name": "Bearing Ball", "ProductNumber": "BA-8327" },
                      { "ProductID": 3, "ProductGroup": "8010", "Name": "BB Ball Bearing", "ProductNumber": "BE-2349" },
                      { "ProductID": 4, "ProductGroup": "9001", "Name": "Headset Ball Bearings", "ProductNumber": "BE-2908" },
                      { "ProductID": 316, "ProductGroup": "8010", "Name": "Blade", "ProductNumber": "BL-2036" },
                      { "ProductID": 317, "ProductGroup": "9001", "Name": "LL Crankarm", "ProductNumber": "CA-5965" },
                      { "ProductID": 318, "ProductGroup": "8010", "Name": "ML Crankarm", "ProductNumber": "CA-6738" },
                      { "ProductID": 319, "ProductGroup": "8010", "Name": "HL Crankarm", "ProductNumber": "CA-7457" },
                      { "ProductID": 320, "ProductGroup": "9001", "Name": "Chainring Bolts", "ProductNumber": "CB-2903" }
                  ];

            $("#grid").igGrid({
                autoGenerateColumns: true,
                dataSource: products,
                height: "400px",
                features: [{
                    name: "GroupBy",
                    type: "local",
                    columnSettings: [{
                        columnKey: "ProductGroup",
                        isGroupBy: true
                    }, {
                        columnKey: "ProductID",
                        allowGrouping: false
                    }]
                }]
            });
            $("#grid").igGrid("dataBind");
        });
      </script>
</head>
<body>
    <table id="grid">
    </table>
</body>
</html>
	  

関連サンプル

関連トピック

依存関係

jquery-1.9.1.js
jquery.ui.core.js
jquery.ui.widget.js
jquery.ui.mouse.js
jquery.ui.draggable.js
jquery.ui.droppable.js
infragistics.ui.grid.framework.js
infragistics.ui.grid.shared.js
infragistics.ui.grid.featurechooser.js

継承

  • collapseTooltip

    タイプ:
    string
    デフォルト:
    ""

    グループ化された行に、折り畳みインジケーター ツールチップを指定します。

    コード サンプル

            //Initialize
            $(".selector").igGrid({
                features: [
                    {
                        name: "GroupBy",
                        collapseTooltip: "Collapse group"
                    }
                ]
            });
            
            //Get
            var opValue = $(".selector").igGridGroupBy("option", "collapseTooltip");
            
            //Set
            $(".selector").igGridGroupBy("option", "collapseTooltip", "Collapse group");
    	  
  • columnSettings

    タイプ:
    object
    デフォルト:
    []

    グリッドが列でグループ化されるかどうか、グループ化を列で許可するかなど、各列の設定を取得または設定します。

    コード サンプル

     
            //Initialize
            $(".selector").igGrid({
                features: [
                    {
                        name: "GroupBy",
                        columnSettings: [
                            { columnKey: "Name", isGroupBy: true },
    						{ columnKey: "BoxArt", allowGrouping: false }
                        ]
                    }
                ]
            });
            
            //Get
            var arrayOfColumnSettings = $(".selector").igGridGroupBy("option", "columnSettings");
          
    • allowGrouping

      タイプ:
      bool
      デフォルト:
      true

      グループ化に参加する列を有効/無効にします。デフォルトでは、すべての列をグループ化できます。

      コード サンプル

       
                  //Initialize
                  $(".selector").igGrid({
                      features: [
                          {
                              name: "GroupBy",
                              columnSettings: [
      						    { columnKey: "Name", allowGrouping: false }
                              ]
                          }
                      ]
                  });
                  
                 	//Get
      			      var groupBySettings = $(".selector").igGridGroupBy("option", "columnSettings");
      			      var allowGroupingFirstColumn = groupBySettings[0].allowGrouping;
                
    • compareFunc

      タイプ:
      enumeration
      デフォルト:
      null

      カスタム比較に使用される関数 (文字列または関数) への参照。
      関数は以下の引数を受け取ります:
      val1: 比較する最初の値
      val2: 比較する 2 番目の値
      recordsData - 3 つのプロパティを持つオブジェクト: fieldName - 並べ替えたフィールドの名前; record1 - 比較する最初のレコード; record2 - 比較する 2 番目のレコード
      関数は以下の数値を返します:
      0 - 値が等しい場合
      1 - val1 > val2 の場合
      -1 - val1 < val2 の場合

      メンバー

      • string
      • タイプ:string
      • グローバル ウィンドウ オブジェクトにある文字列としての関数名。
      • function
      • タイプ:function
      • カスタム比較で使用される関数。

      コード サンプル

       
      					//Initialize
                  $(".selector").igGrid({
                      features: [
                          {
                              name: "GroupBy",
                              columnSettings: [
      												{
      													columnKey: "ProductID", 
      													isGroupBy: true,
      													compareFunc: function(a, b, recordsData) {
      														return a > b ? 1 : a < b ? -1 : 0;
      													}
      												}
                             ]
                          }
                      ]
                  });
      					
    • dir

      タイプ:
      enumeration
      デフォルト:
      asc

      並べ替え方向 (昇順または降順) を指定します。

      コード サンプル

        
                //Initialize
                $(".selector").igGrid({
                    features: [
                        {
                            name: "GroupBy",
                            columnSettings: [
                                { columnKey: "Name", dir: "desc" }
                            ]
                        }
                    ]
                });
                
    • groupComparerFunction
      非推奨

      タイプ:
      function
      デフォルト:
      null

      関数ごとにカスタム グループを指定します。これは列設定、比較する最初と 2 番目の値を受け入れ、ブールを返します。このオプションは非推奨です。compareFunc オプションを使用してください。

      コード サンプル

                   
                //Initialize
      			    $(".selector").igGrid({
      				    features: [
      					    {
      						    name: "GroupBy",
      						    columnSettings: [{ 
      							    columnKey: "Name", 
      							    groupComparerFunction: function (columnSetting, val1, val2) {
      								    return (val1 === val2);
      							    } 
      						    }]
      					    }
      				    ]
      			    });          
              
    • groupLabelFormatter

      タイプ:
      enumeration
      デフォルト:
      null

      セル値を書式設定するために使用される関数への参照。この関数は、グループ化された列値を許可し、行ラベルの新しい書式設定値を返します。

      メンバー

      • string
      • タイプ:string
      • グローバル ウィンドウ オブジェクトにある文字列としての関数名。
      • function
      • タイプ:function
      • セル値を書式設定するために使用される関数。

      コード サンプル

       
                //Initialize
      			    $(".selector").igGrid({
      				    features: [
      					    {
      						    name: "GroupBy",
      						    columnSettings: [{ 
      							    columnKey: "Name", 
      							    groupLabelFormatter: function(val) {return (val === 1)? "Yes" : "No";}
      						    }]
      					    }
      				    ]
      			    });	 
                
                //Get
      			    var groupBySettings = $(".selector").igGridGroupBy("option", "columnSettings");
      			    var labelFormatterFirstColumn = groupBySettings[0].groupLabelFormatter; 
                
    • isGroupBy

      タイプ:
      bool
      デフォルト:
      false

      デフォルトで列をグループ化するかどうかを指定します。

      コード サンプル

                 
                  //Initialize
      			      $(".selector").igGrid({
      				      features: [
      					      {
      						      name: "GroupBy",
      						      columnSettings: [
      							      { columnKey: "Name", isGroupBy: true }
      						      ]
      					      }
      				      ]
      			      });	 
                 
    • summaries

      タイプ:
      object
      デフォルト:
      []

      各グループの列値で計算するための集計関数のリスト。

      コード サンプル

       
                  //Initialize
      			      $(".selector").igGrid({
      				      features: [
      					      {
      						      name: "GroupBy",
      						      columnSettings: [
      							      //	The code in this example specifies that data must be grouped by 
      							      //	the Color column and the average, the minimum and the maximum of 
      							      //	the ListPrice column must be calculated and displayed for each group.
      							      { 
      								      columnKey: "Color", 
      								      isGroupBy: true
      							      },
      							      {
      								      columnKey: "ListPrice",
      								      allowGrouping: false,
      								      summaries: [
      									      {
      										      summaryFunction: "avg", text: " average:"
      									      },
      									      {
      										      summaryFunction: "min", text: " minimal:"
      									      },
      									      {
      										      summaryFunction: "max", text: " maximal:"
      									      }
      								      ]
      							      }
      						      ]
      					      }
      				      ]
      			      });	
                
      • customSummary

        タイプ:
        enumeration
        デフォルト:
        null

        各グループで呼び出されるカスタム集計関数を指定します。カスタム集計結果を返します。次の定義があるオブジェクトを引数として受けます: {dataRecords: [], array: [], key: "", allGroupData: []}
        dataRecords - data view でグループ化されるデータ レコードの配列
        array - 指定した列のセル値の配列
        key - グループ化された列のキー
        allGroupData - グループのデータ レコードの配列 (データ ビューだけでなく、データ ソース全体)。

        メンバー

        • string
        • タイプ:string
        • グローバル ウィンドウ オブジェクトにある文字列としての関数名。
        • function
        • タイプ:function
        • 集計値を計算するために使用される関数。

        コード サンプル

        				//Initialize
        				$(".selector").igGrid({
        					features: [
        						{
        							name: "GroupBy",
        							columnSettings: [
        								{ 
        									columnKey: "Color", 
        									isGroupBy: true
        								},
        								{
        									columnKey: "ListPrice",
        									allowGrouping: false,
        									summaries: [
        										{
        											//	Set average price summary value
        											summaryFunction: "avg", text: " average:"
        										},
        										{
        											//	Set a custom function to calculate the difference between 
        											//	the minimum and the maximum values in the group
        											summaryFunction: "custom",
        											text: " delta:",
        											customSummary: function(valuesList) {
        												//	Initialize minmum and maximum values with the first element
        												var min = valuesList[1], max = valuesList[1];
        												//	Iterate all values in the list and find minimum and maximum
        												for(i = 1; i < valuesList.length; i++) {
        													if(valuesList[i] < min)	min = valuesList[i];
        													if(valuesList[i] > max)	max = valuesList[i];
        												}
        												//	Return difference between minimum and maximum
        												return (max - min);
        											}
        										}
        									]
        								}
        							]
        						}
        					]
        				});	
        			  
      • summaryFunction

        タイプ:
        enumeration
        デフォルト:
        avg

        集計関数

        メンバー

        • avg
        • タイプ:string
        • 平均集計関数。
        • min
        • タイプ:string
        • 最小集計関数。
        • max
        • タイプ:string
        • 最大集計関数。
        • sum
        • タイプ:string
        • 合計集計関数。
        • count
        • タイプ:string
        • カウント集計関数。
        • custom
        • タイプ:string
        • カスタム集計関数。

        コード サンプル

                     
                        //Initialize
                        $(".selector").igGrid({
                            features: [{
                                name: "GroupBy",
                                columnSettings: [{
                                    columnKey: "Name",
                                    summaries: [{
                                        summaryFunction: "Avg"
                                    }]
                                }]
                            }]
                        });
                    
      • text

        タイプ:
        string
        デフォルト:
        null

        値の前に表示される Summary テキストを指定します。

        コード サンプル

                     
                      //Initialize
                      $(".selector").igGrid({
                          features: [{
                              name: "GroupBy",
                              columnSettings: [{
                                  columnKey: "Name",
                                  summaries: [{
                                      summaryFunction: "Avg",
                                      text: "Average:"
                                  }]
                              }]
                          }]
                      });
                    
  • defaultSortingDirection

    タイプ:
    enumeration
    デフォルト:
    asc

    デフォルトの並べ替え順序 - 昇順または降順。

    メンバー

    • asc
    • タイプ:string
    • グループは昇順で並べ替えています。
    • desc
    • タイプ:string
    • グループは降順で並べ替えています。

    コード サンプル

            //Initialize
                $(".selector").igGrid({
                    features: [
                        {
                            name: "GroupBy",
                            defaultSortingDirection: "desc"
                        }
                    ]
                });
    
                //	Get
                var defaultDireciton = $(".selector").igGridGroupBy("option", "defaultSortingDirection");
    
                //	Set
                $(".selector").igGridGroupBy("option", "defaultSortingDirection", "desc");
          
  • dialogWidget

    タイプ:
    string
    デフォルト:
    "igGridModalDialog"

    使用するダイアログ ウィジェットの名前。 $.ui.igGridModalDialog から継承します。詳細については、igGrid モーダル ダイアログの拡張 トピックを参照してください。

    コード サンプル

     
            //create dialog widget that inherits from $.ui.igGridModalDialog
              $.widget("ui.CustomDialog", $.ui.igGridModalDialog, {});
               //Initialize
            $(".selector").igGrid({
                features : [
                    {
                        name : "GroupBy",
                       dialogWidget: "CustomDialog"
                    }
                ]
            });
            
    		    //Get
            var dialogWidget = $(".selector").igGridGroupBy("option", "dialogWidget");
              
  • emptyGroupByAreaContent

    タイプ:
    string
    デフォルト:
    ""

    グループ化された列がない場合に GroupBy 領域に表示されるリンクのテキスト。

    コード サンプル

     
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    emptyGroupByAreaContent: "Put here columns to group by"
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "emptyGroupByAreaContent");
             
  • emptyGroupByAreaContentSelectColumns

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログを開くリンク テキスト。

    コード サンプル

     
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    emptyGroupByAreaContentSelectColumns: "Select Columns to Group By"
                }]
            });
    
            //	Get
            var text = $(".selector").igGridGroupBy("option", "emptyGroupByAreaContentSelectColumns");
    
            //	Set
            $(".selector").igGridGroupBy("option", "emptyGroupByAreaContentSelectColumns", "Select Columns to Group By");
          
  • emptyGroupByAreaContentSelectColumnsCaption

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログを開くボタンのキャプションを指定します。

    コード サンプル

     
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    emptyGroupByAreaContentSelectColumnsCaption: "Select Columns to Group By"
                }]
            });
    
            //	Get
            var text = $(".selector").igGridGroupBy("option", "emptyGroupByAreaContentSelectColumnsCaption");
    
            //	Set
            $(".selector").igGridGroupBy("option", "emptyGroupByAreaContentSelectColumnsCaption", "Select Columns to Group By");
          
  • expandTooltip

    タイプ:
    string
    デフォルト:
    ""

    グループ化された行に対する拡張インジケーター ツールチップを指定します。

    コード サンプル

            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    expandTooltip: "Custom expand tooltip"
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "expandTooltip");
    
            //	Set
            $(".selector").igGridGroupBy("option", "expandTooltip", "Custom expand tooltip");
            
  • expansionIndicatorVisibility

    タイプ:
    bool
    デフォルト:
    true

    グループ化された行に、エンド ユーザーが展開・折り畳むことができる展開画像が含まれるかどうかを指定します。このオプションは初期化のみに設定できます。

    コード サンプル

             
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    expansionIndicatorVisibility: true
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "expansionIndicatorVisibility");
            
  • groupByAreaVisibility

    タイプ:
    enumeration
    デフォルト:
    top

    groupBy 領域が置かれるグリッドの場所を設定します。

    メンバー

    • top
    • タイプ:string
    • GroupBy 領域はグリッド ヘッダーの上に描画されます。
    • hidden
    • タイプ:string
    • GroupBy 領域は描画されません。
    • bottom
    • タイプ:string
    • GroupBy 領域はグリッド フッターの下 (および、ある場合はページャーの上) に描画されます。

    コード サンプル

             
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    groupByAreaVisibility: "bottom"
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "groupByAreaVisibility");
    
            //	Set
            $(".selector").igGridGroupBy("option", "groupByAreaVisibility", "hidden");
            
  • groupByDialogContainment

    タイプ:
    enumeration
    デフォルト:
    owner

    グループ化ダイアログのコンテインメント動作を管理します。
    owner - グループ化ダイアログはグリッド領域でのみドラッグ可能です。
    window - グループ化ダイアログはウィンドウ領域全体でドラッグ可能です。

    メンバー

    • owner
    • タイプ:string
    • グループ化ダイアログはグリッド領域でのみドラッグ可能です。
    • window
    • タイプ:string
    • グループ化ダイアログはウィンドウ領域全体でドラッグ可能です。

    コード サンプル

     
          //Initialize
            $(".selector").igGrid({
                features: [
                    {
                        name : "GroupBy",
                        groupByDialogContainment : "window"
                  }
                ]
            });
    
            //Get
            var groupByDialogContainment = $(".selector").igGridGroupBy("option", "groupByDialogContainment");
    
          
  • groupByLabelWidth

    タイプ:
    number
    デフォルト:
    null

    デフォルトでは、ヘッダーの列幅を使用します。指定される場合、すべてのヘッダーのために使用されます。

    コード サンプル

            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    groupByLabelWidth: 100
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "groupByLabelWidth");
    
            //	Set
            $(".selector").igGridGroupBy("option", "groupByLabelWidth", 100);
    		
  • groupByUrlKey

    タイプ:
    string
    デフォルト:
    null

    GroupBy expression を指定する URL パラメーター名。groupByUrlKey, groupByUrlKeyAscValue および groupByUrlKeyDescValue を設定した場合、要求は次のようになります: ?<groupByUrlKey>(<columnKey>)=<groupByUrlKeyAscValue/groupByUrlKeyDescValue> (例: ?groupby(col1)=asc)。そうでない場合、並べ替えパラメーターのための OData 変換が使用されます。

    コード サンプル

     
          //Initialize
          $(".selector").igGrid({
              features : [
                  {
                      name : "GroupBy",
                      groupByUrlKey: "myCustomGroupBy",
    							    groupByUrlKeyAscValue : "myAsc",
    							    groupByUrlKeyDescValue : "myDesc"
                  }
              ]
          });
     
          //Get
          var groupByUrlKey = $(".selector").igGridGroupBy("option", "groupByUrlKey");
     
          //Set
          $(".selector").igGridGroupBy("option", "groupByUrlKey", "myGroupBy");
          
  • groupByUrlKeyAscValue

    タイプ:
    string
    デフォルト:
    null

    昇順のグループ化を示す URL パラメーター値です。groupByUrlKey の場合、groupByUrlKey, groupByUrlKeyAscValue および groupByUrlKeyDescValue を設定すると要求は次のようになります: ?<groupByUrlKey>(<columnKey>)=<groupByUrlKeyAscValue/groupByUrlKeyDescValue> (例: ?groupby(col1)=asc)。

    コード サンプル

     
          //Initialize
          $(".selector").igGrid({
              features : [
                  {
                      name : "GroupBy",
                      groupByUrlKey: "myCustomGroupBy",
                      groupByUrlKeyAscValue : "myAsc",
    							    groupByUrlKeyDescValue : "myDesc"
                  }
              ]
          });
     
          //Get
          var groupByAsc = $(".selector").igGridGroupBy("option", "groupByUrlKeyAscValue");
     
          //Set
          $(".selector").igGridGroupBy("option", "groupByUrlKeyAscValue", "myAsc");
          
  • groupByUrlKeyDescValue

    タイプ:
    string
    デフォルト:
    null

    降順のグループ化を示す URL パラメーター値です。groupByUrlKey の場合、groupByUrlKeyAscValue および groupByUrlKeyDescValue を設定すると次のようになります: ?<groupByUrlKey>(<columnKey>)=<groupByUrlKeyAscValue/groupByUrlKeyDescValue> (Example: ?groupby(col1)=asc)。

    コード サンプル

     
           //Initialize
          $(".selector").igGrid({
              features : [
                  {
                      name : "GroupBy",
                      groupByUrlKey: "myCustomGroupBy",
                      groupByUrlKeyAscValue : "myAsc",
                      groupByUrlKeyDescValue : "myDesc"
                  }
              ]
          });
     
          //Get
          var groupByDesc = $(".selector").igGridGroupBy("option", "groupByUrlKeyDescValue");
     
          //Set
          $(".selector").igGridGroupBy("option", "groupByUrlKeyDescValue", "myDesc");
          
  • groupedColumns

    タイプ:
    array
    デフォルト:
    []
    要素タイプ:
    object

    現在のグループ化される列のリストを返します。このオプションは読み取り専用で、初期化またはランタイムに設定できません。

    コード サンプル

    		    //	Get
    		    var groupedColumns = $(".selector").igGridGroupBy("option", "groupedColumns");
    		
    		    //	Enumerates all grouped columns
    		    for(i = 0; i < groupedColumns.length; i++) {
    			    //	Get column object
    			    var col = groupedColumns[i].col;
    			
    			    //	Get the sort order for this column
    			    var dir = groupedColumns[i].dir;
    			
    			    //	Get the key of the grouped column
    			    var key = groupedColumns[i].key;
    			
    			    //	Get the key of the columnLayour if this is hierarchical view
    			    var layout = groupedColumns[i].layout;
    		    }
    		  
    • col

      タイプ:
      object
      デフォルト:
      null

      グループ化された列の column オブジェクト。

      コード サンプル

      			      //	Get
      			      var groupedColumns = $(".selector").igGridGroupBy("option", "groupedColumns");
      			
      			      //	Enumerates all grouped columns
      			      for(i = 0; i < groupedColumns.length; i++) {
      				      //	Get column object
      				      var col = groupedColumns[i].col;			
      			      }
                
    • dir

      タイプ:
      enumeration
      デフォルト:
      asc

      並べ替え順 - 昇順または降順。

      コード サンプル

             
      			      //	Get
      			      var groupedColumns = $(".selector").igGridGroupBy("option", "groupedColumns");
      			
      			      //	Enumerates all grouped columns
      			      for(i = 0; i < groupedColumns.length; i++) {
      				      //	Get the sort order for this column
      				      var dir = groupedColumns[i].dir;
      			      }
                
    • key

      タイプ:
      string
      デフォルト:
      null

      グループ化された列のキー。

      コード サンプル

      			      //	Get
      			      var groupedColumns = $(".selector").igGridGroupBy("option", "groupedColumns");
      			
      			      //	Enumerates all grouped columns
      			      for(i = 0; i < groupedColumns.length; i++) {
      				      //	Get the key of the grouped column
      				      groupedColumns.key
      			      }
                
    • layout

      タイプ:
      string
      デフォルト:
      null

      グリッドが階層型の場合の columnLayout のキー。

      コード サンプル

      			      //	Get
      			      var groupedColumns = $(".selector").igGridGroupBy("option", "groupedColumns");
      			
      			      //	Enumerates all grouped columns
      			      for(i = 0; i < groupedColumns.length; i++) {
      				      //	Get the key of the columnLayour if this is hierarchical view
      				      var layout = groupedColumns[i].layout;
      			      }
                
  • groupedRowTextTemplate

    タイプ:
    string
    デフォルト:
    "${key}: ${val} (${count})"

    jQuery のテンプレート 作成ガイドラインに付随する、グループ化された行のテキストのテンプレート。テンプレートの利用可能な変数は ${key}、${val}、および ${count} です。

    コード サンプル

               
            //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    groupedRowTextTemplate: "Cost $ ${val} (Count: ${count})"
    				    }
    			    ]
    		    });
    
    		    //	Get
    		    var opValue = $(".selector").igGridGroupBy("option", "groupedRowTextTemplate");
    		
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "groupedRowTextTemplate", "Cost $ ${val} (Count: ${count})");
          
  • indentation

    タイプ:
    number
    デフォルト:
    30

    グループ化された行の字下げを指定します。複数の列がグループ化された場合、全体の字下げは大きくなります。

    コード サンプル

             
                //Initialize
                $(".selector").igGrid({
                    features: [
                        {
                            name: "GroupBy",
                            indentation: 50
                        }
                    ]
                });
    
                //	Get
                var opValue = $(".selector").igGridGroupBy("option", "indentation");
    
                //	Set
                $(".selector").igGridGroupBy("option", "indentation", 50);
    		  
  • inherit

    タイプ:
    bool
    デフォルト:
    false

    子レイアウトで機能継承を有効または無効にします。注: igHierarchicalGrid のみに適用します。

  • initialExpand

    タイプ:
    bool
    デフォルト:
    true

    グループ化の後に、グループ化された行を最初に展開または折り畳むかどうかを指定します。このオプションは初期化のみに設定できます。

    コード サンプル

             
    		    //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    initialExpand: false
    				    }
    			    ]
    		    }); 
    
    		    //	Get
    		    var opValue = $(".selector").igGridGroupBy("option", "initialExpand");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "initialExpand", false);
         
  • labelDragHelperOpacity

    タイプ:
    number
    デフォルト:
    0.5

    列ヘッダーがドラッグされている間の、ドラッグ マークアップの不透明性を指定します。値は 0 と 1 の間である必要があります。

    コード サンプル

             
            //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    labelDragHelperOpacity: 0.75
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var opValue = $(".selector").igGridGroupBy("option", "labelDragHelperOpacity");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "labelDragHelperOpacity", 0.75);
          
  • modalDialogAnimationDuration

    タイプ:
    number
    デフォルト:
    200

    モーダル ダイアログを表示または非表示にするアニメーション時間をミリ秒で指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogAnimationDuration: 300
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var duration = $(".selector").igGridGroupBy("option", "modalDialogAnimationDuration");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogAnimationDuration", 200);
          
  • modalDialogButtonApplyText

    タイプ:
    string
    デフォルト:
    ""

    モーダル ダイアログで変更を適用するボタンのテキストを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogButtonApplyText: "Apply"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogButtonApplyText");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogButtonApplyText", "Apply");
          
  • modalDialogButtonCancelText

    タイプ:
    string
    デフォルト:
    ""

    モーダル ダイアログで変更をキャンセルするボタンのテキストを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogButtonCancelText: "Cancel"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogButtonCancelText");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogButtonCancelText", "Cancel");
          
  • modalDialogCaptionButtonAsc

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログで昇順に並べ替えられた各列のキャプションを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogCaptionButtonAsc: "Acsending"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonAsc");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonAsc", "Acsending");
          
  • modalDialogCaptionButtonDesc

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログで降順に並べ替えられた各列のキャプションを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogCaptionButtonDesc: "Descending"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonDesc");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonDesc", "Descending");
          
  • modalDialogCaptionButtonUngroup

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログでキャプション ボタン グループ化解除を指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogCaptionButtonUngroup: "Ungroup"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonUngroup");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogCaptionButtonUngroup", "Ungroup");
          
  • modalDialogCaptionText

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログでキャプション テキストを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogCaptionText: "Modal Dialog"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogCaptionText");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogCaptionText", "Modal Dialog");
          
  • modalDialogClearAllButtonLabel

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログですべてをクリア ボタンのラベルを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogClearAllButtonLabel: "Clear All"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogClearAllButtonLabel");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogClearAllButtonLabel", "Clear All");
          
  • modalDialogDropDownAreaWidth

    タイプ:
    number
    デフォルト:
    null

    グループ化ダイアログでレイアウト ドロップダウンの幅を指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogDropDownAreaWidth: 300
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var width = $(".selector").igGridGroupBy("option", "modalDialogDropDownAreaWidth");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogDropDownAreaWidth", 300);
          
  • modalDialogDropDownButtonCaption

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログでレイアウト ドロップダウン ボタンのキャプションを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogDropDownButtonCaption: "Layouts"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogDropDownButtonCaption");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogDropDownButtonCaption", "Layouts");
          
  • modalDialogDropDownLabel

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログでレイアウト ドロップダウンのラベルを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogDropDownLabel: "Layouts"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogDropDownLabel");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogDropDownLabel", "Layouts");
          
  • modalDialogDropDownWidth

    タイプ:
    number
    デフォルト:
    200

    グループ化ダイアログでレイアウト ドロップダウンの幅を指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogDropDownWidth: 300
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var width = $(".selector").igGridGroupBy("option", "modalDialogDropDownWidth");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogDropDownWidth", 300);
          
  • modalDialogGroupByButtonText

    タイプ:
    string
    デフォルト:
    ""

    グループ化ダイアログでグループ化ボタンのテキストを指定します。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogGroupByButtonText: "Group"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var text = $(".selector").igGridGroupBy("option", "modalDialogGroupByButtonText");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogGroupByButtonText", "Group");
                
  • modalDialogGroupByOnClick

    タイプ:
    bool
    デフォルト:
    false

    グループ化ダイアログでクリックして列を直ちにグループ化するか、それともグループ化解除するかを指定します。false の場合、グループ化ダイアログに適用ボタンが表示されます。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogGroupByOnClick: true
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var onClick = $(".selector").igGridGroupBy("option", "modalDialogGroupByOnClick");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogGroupByOnClick", true); 
                
  • modalDialogHeight

    タイプ:
    enumeration
    デフォルト:
    ""

    グループ化ダイアログの高さを指定します。

    メンバー

    • string
    • タイプ:string
    • ダイアログ高さをピクセル (px) またはパーセンテージ (%) に設定できます。値の例: "800px"、"800" (デフォルト単位はピクセル)、"100%"。
    • number
    • タイプ:number
    • ダイアログの高さはピクセルの数値で設定できます。値の例: 800、700。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogHeight: 500
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var height = $(".selector").igGridGroupBy("option", "modalDialogHeight");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogHeight", 500); 
          
  • modalDialogRootLevelHierarchicalGrid

    タイプ:
    string
    デフォルト:
    ""

    レイアウト ツリー ダイアログに表示されるルート レイアウトの名前を指定します。

    コード サンプル

                 
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogRootLevelHierarchicalGrid: "Root Layout"
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var rootLabel = $(".selector").igGridGroupBy("option", "modalDialogRootLevelHierarchicalGrid");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogRootLevelHierarchicalGrid", "Root Layout"); 
  • modalDialogWidth

    タイプ:
    enumeration
    デフォルト:
    400

    グループ化ダイアログの幅を指定します。

    メンバー

    • string
    • タイプ:string
    • ダイアログ幅をピクセル (px) またはパーセンテージ (%) に設定できます。値の例: "800px"、"800" (デフォルト単位はピクセル)、"100%"。
    • number
    • タイプ:number
    • ダイアログ幅はピクセルの数値で設定できます。値の例: 800、700。

    コード サンプル

     
                //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    modalDialogWidth: 300
    				    }
    			    ]
    		    });  
    
    		    //	Get
    		    var width = $(".selector").igGridGroupBy("option", "modalDialogWidth");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "modalDialogWidth", 300); 
          
  • persist

    タイプ:
    bool
    デフォルト:
    true

    状態間でグループ化の永続化を有効/無効にします。詳細については、GroupBy の永続化 を参照できます。

    コード サンプル

        //Initialize
        $(".selector").igGrid({
            features : [
                {
                    name : "GroupBy",
                    persist : false
                }
            ]
        });
    
        //Get
        var persist = $(".selector").igGridGroupBy("option", "persist");
    
        //Set
        $(".selector").igGridGroupBy("option", "persist", false);
      
  • removeButtonTooltip

    タイプ:
    string
    デフォルト:
    ""

    削除ボタンのツールチップを指定します。

    コード サンプル

                //Initialize
                $(".selector").igGrid({
                    features: [
                        {
                            name: "GroupBy",
                            removeButtonTooltip: "Do not group by this column"
                        }
                    ]
                });  
    
                //	Get
                var opValue = $(".selector").igGridGroupBy("option", "removeButtonTooltip");
    
                //	Set
                $(".selector").igGridGroupBy("option", "removeButtonTooltip", "Do not group by this column");
    	    
  • resultResponseKey

    タイプ:
    string
    デフォルト:
    null

    group by データを応答から取得するためのキーを指定します。このオプションは初期化のみに設定できます。

    コード サンプル

    		    //	Get
    		    var opValue = $(".selector").igGridGroupBy("option", "resultResponseKey");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "resultResponseKey", "Cost");
    	    
  • summarySettings

    タイプ:
    object
    デフォルト:
    {}

    GroupBy 集計の設定を指定します。

    コード サンプル

             
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    summarySettings: {
                        multiSummaryDelimiter: " | ",
                        summaryFormat: "#0.00"
                    }
                }]
            });
    
            //	Get
            var opValue = $(".selector").igGridGroupBy("option", "summarySettings");
    
            //	Set
            $(".selector").igGridGroupBy("option", "summarySettings", {
                multiSummaryDelimiter: " | ",
                summaryFormat: "#0.00"
            });
          
    • multiSummaryDelimiter

      タイプ:
      string
      デフォルト:
      ","

      サマリーをグループ化された行内にインラインで描画する場合、複数サマリーに対する区切り文字を指定します。

      コード サンプル

               
                  //Initialize
                  $(".selector").igGrid({
                      features: [{
                          name: "GroupBy",
                          summarySettings: {
                              multiSummaryDelimiter: " | "
                          }
                      }]
                  });
      
                  //	Get
                  var summarySettings = $(".selector").igGridGroupBy("option", "summarySettings");
                  //	Get the value of multiSummaryDelimiter
                  summarySettings.multiSummaryDelimiter
      
                  //	Set
                   //	Get current summary settings and set a new value to multiSummaryDelimiter
                  var summarySettings = $(".selector").igGridGroupBy("option", "summarySettings");
                  summarySettings.multiSummaryDelimiter = " | ";
                  //	Set the new value to the widget
                  $(".selector").igGridGroupBy("option", "summarySettings", summarySettings);
                
    • summaryFormat

      タイプ:
      string
      デフォルト:
      "#.00"

      集計値の形式。デフォルトでは、小数位以下 2 桁が表示されます。有効な書式指定子については、日付、数値、および文字列の書式設定を参照してください。

      コード サンプル

                  //Initialize
                  $(".selector").igGrid({
                      features: [{
                          name: "GroupBy",
                          summarySettings: {
                              summaryFormat: "#0.00"
                          }
                      }]
      
                      //	Get
                      var summarySettings = $(".selector").igGridGroupBy("option", "summarySettings");
                      //	Get the value of summaryFormat
                      summarySettings.summaryFormat
      
                      //	Set
                      //	Get current summary settings and set a new value to summaryFormat
                      var summarySettings = $(".selector").igGridGroupBy("option", "summarySettings");
                      summarySettings.summaryFormat = "#0.00";
                      //	Set the new value to the widget
                      $(".selector").igGridGroupBy("option", "summarySettings", summarySettings);
                  });
                
  • type

    タイプ:
    enumeration
    デフォルト:
    null

    groupBy 操作がクライアント側に実行するか、サーバー側に実行するかどうかを指定します。

    メンバー

    • local
    • タイプ:string
    • groupBy 操作をクライアント側に実行します。
    • remote
    • タイプ:string
    • サーバーへの要求によって groupBy 操作を実行します。

    コード サンプル

            //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    type: "local"
    				    }
    			    ]
    		    });
    
    		    //	Get
    		    var opValue = $(".selector").igGridGroupBy("option", "type");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "type", "local");
          
  • useGridColumnFormatter

    タイプ:
    bool
    デフォルト:
    true

    igGrid.columns.formatter または igGrid.columns.format で設定したフォーマッターを使用したグループ化列の書式設定。

    コード サンプル

           //Initialize
    		    $(".selector").igGrid({
    			    features: [
    				    {
    					    name: "GroupBy",
    					    useGridColumnFormatter: false
    				    }
    			    ]
    		    });
    
    		    //	Get
    		    var useGridColumnFormatter = $(".selector").igGridGroupBy("option", "useGridColumnFormatter");
    
    		    //	Set
    		    $(".selector").igGridGroupBy("option", "useGridColumnFormatter", false);
          

Ignite UI コントロール イベントの詳細については、
Ignite UI でイベントを使用するを参照してください。

注: API メソッドの呼び出しは、API ヘルプに特に記述がない限り、操作に関連するイベントはプログラムによって発生されません。これらのイベントは各ユーザー操作によってのみ呼び出されます。

詳細の表示
  • groupedColumnsChanged

    キャンセル可能:
    false

    groupedColumns コレクションが変更されたときに発生するイベント。GroupBy モーダル ダイアログでキー、レイアウト、およびグリッドを設定せずに、グループ化またはグループ化を解除した場合、このイベントが発生されます。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトへのアクセスを取得します。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • groupedColumns
          タイプ:Array

          現在の groupedColumns への参照を取得します。

        • key
          タイプ:String

          グループ化されている現在の列のキーへの参照を取得します (モーダル ダイアログから呼び出された場合は設定されません)。

        • layout
          タイプ:Object

          存在する場合、現在のレイアウト オブジェクトへの参照を取得します (モーダル ダイアログから呼び出された場合は設定されません)。

        • grid
          タイプ:Object

          階層型グリッドの場合、現在の子グリッド要素への参照を取得します (モーダル ダイアログから呼び出された場合は設定されません)。

        • triggeredBy
          タイプ:String

          イベントを発生したユーザー操作を取得します。オプションは dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup です。

    コード サンプル

            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbygroupedcolumnschanged", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound
                ui.owner.grid;
    
                //	Get a reference to the list of currently grouped columns
                ui.groupedColumns;
    
                //	Get a reference to the current grouped column"s key
                ui.key;
    
                //	Get a reference to the current layout object, if any
                ui.layout;
    
                //	Get a reference to the current child grid element, in case it"s a hierarchical grid
                ui.grid;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    groupedColumnsChanged: function (evt, ui) { ... }
                }]
            });
          
  • groupedColumnsChanging

    キャンセル可能:
    true

    グループ化される列のコレクションが変更される前に発生されるイベント。このイベントは、[OK] ボタンがモーダル ダイアログからクリックしても発生されます (modalDialogButtonApplyClick イベントが発生した後)。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • groupedColumns
          タイプ:Array

          現在の groupedColumns への参照を取得します

        • newGroupedColumns
          タイプ:Object

          適用する新しくグループ化された列のオブジェクトを取得します (モーダル ダイアログから呼び出された場合のみに設定されます)。

        • key
          タイプ:String

          グループ化されている現在の列のキーへの参照を取得します (モーダル ダイアログから呼び出された場合に設定されません)。

        • layout
          タイプ:Object

          存在する場合、現在のレイアウト オブジェクトへの参照を取得します (モーダル ダイアログから呼び出された場合に設定されません)。

        • grid
          タイプ:Object

          階層型グリッドの場合、現在の子グリッド要素への参照を取得します (モーダル ダイアログから呼び出された場合に設定されません)。

        • triggeredBy
          タイプ:String

          イベントを発生したユーザー操作を取得します。オプションは dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup です。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbygroupedcolumnschanging", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound
                ui.owner.grid;
    
                //	Get a reference to the list of currently grouped columns
                ui.groupedColumns;
    
                //	Get a reference to the current grouped column"s key
                ui.key;
    
                //	Get a reference to the current layout object, if any
                ui.layout;
    
                //	Get a reference to the current child grid element, in case it"s a hierarchical grid
                ui.grid;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    groupedColumnsChanging: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogButtonApplyClick

    キャンセル可能:
    true

    [適用] ボタンをクリックしたときに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

        • groupedColumns
          タイプ:Array

          グループ化される列の配列を取得します。

        • groupedColumnLayouts
          タイプ:Array

          列レイアウトの配列を取得します。

        • sortingExpr
          タイプ:Array

          並べ替えた列の配列を取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogbuttonapplyclick", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
                
                //	Get a reference to the list of currently grouped columns.
                ui.groupedColumns;
    
                //	Get a reference to the list of currently grouped layouts.
                ui.groupedColumnLayouts;
    
                //	Get a reference to the array of currently sorted columns.
                ui.sortingExpr;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogButtonApplyClick: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogButtonResetClick

    キャンセル可能:
    true

    [リセット] ボタンがクリックされたときに発生されるイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogbuttonresetclick", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogButtonResetClick: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogClosed

    キャンセル可能:
    false

    モーダル ダイアログが閉じた後に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogclosed", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogClosed: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogClosing

    キャンセル可能:
    true

    モーダル ダイアログが閉じる前に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogclosing", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogClosing: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogContentsRendered

    キャンセル可能:
    false

    モーダル ダイアログのコンテンツが描画された後に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogcontentsrendered", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogContentsRendered: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogContentsRendering

    キャンセル可能:
    true

    モーダル ダイアログのコンテンツが描画される前に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogcontentsrendering", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogContentsRendering: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogGroupColumn

    キャンセル可能:
    false

    モーダル ダイアログ内のグループ化される列がクリックされたときに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • key
          タイプ:String

          グループ化される列のキーを取得します。

        • groupedColumns
          タイプ:Array

          現在の groupedColumns への参照を取得します。

        • layout
          タイプ:Object

          ある場合、列のレイアウト オブジェクトへの参照を取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialoggroupcolumn", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get the key of the column to be grouped.
                ui.key;
                
                //	Get a reference to the list of currently grouped columns.
                ui.groupedColumns;
                
                //	Get a reference to the current layout object, if any.
                ui.layout;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogGroupColumn: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogGroupingColumn

    キャンセル可能:
    true

    モーダル ダイアログ内のグループ化される列がクリックされたときに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • key
          タイプ:String

          グループ化される列のキーを取得します。

        • layout
          タイプ:Object

          ある場合、列のレイアウト オブジェクトへの参照を取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialoggroupingcolumn", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get the key of the column to be grouped.
                ui.key;
                
                //	Get a reference to the current layout object, if any.
                ui.layout;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogGroupingColumn: function (evt, ui) { ... }
                }]
            });
          
  • modalDialogMoving

    キャンセル可能:
    false

    グループ化ダイアログの位置が変わるたびに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

        • originalPosition
          タイプ:Object

          グループ化ダイアログ div の元の位置をページに相対して { top, left } オブジェクトとして取得します。

        • position
          タイプ:Object

          グループ化ダイアログ div の現在の位置をページに相対して { top, left } オブジェクトとして取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogmoving", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
                
                //	Get the original position of the groupby dialog div as { top, left } object, relative to the page.
                ui.originalPosition;
                
                //	Get the current position of the groupby dialog div as { top, left } object, relative to the page.
                ui.position;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogMoving: function (evt, ui) { ... }
                }]
            }); 
            
  • modalDialogOpened

    キャンセル可能:
    false

    モーダル ダイアログがすでに開いた後に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogopened", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogOpened: function (evt, ui) { ... }
                }]
            }); 
          
  • modalDialogOpening

    キャンセル可能:
    true

    モーダル ダイアログが開く前に発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • modalDialogElement
          タイプ:jQuery

          モダル ダイアログ要素への参照を取得します。これは jQuery オブジェクトです。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogopening", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogOpening: function (evt, ui) { ... }
                }]
            }); 
          
  • modalDialogSortGroupedColumn

    キャンセル可能:
    true

    モーダル ダイアログ内のグループ化を解除される列がクリックされたときに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • key
          タイプ:String

          グループ化される列のキーを取得します。

        • layout
          タイプ:Object

          ある場合、現在のレイアウト オブジェクトへの参照を取得します。

        • isAsc
          タイプ:Bool

          列を昇順または降順に並べ替えるかどうかを取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogsortgroupecolumn", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get a reference to the modal dialog element. This is a jQuery object.
                ui.modalDialogElement;
                
                //	Get the key of the column to be grouped.
                ui.key;
                
                //	Get a reference to the current layout object, if any.
                ui.layout;
                
                // Get whether column should be sorted ascending or descending.
                ui.isAsc;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogSortGroupedColumn: function (evt, ui) { ... }
                }]
            }); 
          
  • modalDialogUngroupColumn

    キャンセル可能:
    false

    モーダル ダイアログ内のグループ化を解除される列がクリックされたときに発生するイベント。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • groupedColumns
          タイプ:Array

          現在の groupedColumns への参照を取得します。

        • key
          タイプ:String

          グループ化される列のキーを取得します。

        • layout
          タイプ:Object

          ある場合、現在のレイアウト オブジェクトへの参照を取得します。

    コード サンプル

     
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogungroupcolumn", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get the key of the column to be grouped.
                ui.key;
                
                //	Get a reference to the list of currently grouped columns.
                ui.groupedColumns;
                
                //	Get a reference to the current layout object, if any.
                ui.layout;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogUngroupColumn: function (evt, ui) { ... }
                }]
            }); 
          
  • modalDialogUngroupingColumn

    キャンセル可能:
    true

    モーダル ダイアログ内のグループ化を解除される列がクリックされたときに発生するイベント。
    ハンドラー関数は引数 evt および ui を受け取ります。
    igGridGroupby ウィジェットへの参照を取得するには ui.owner を使用します。
    ui.owner.grid を使用して、igGrid ウィジェットへの参照を取得します。
    グループ化される列のキーを取得するには ui.key を使用します。
    列のレイアウトを取得するには ui.layout を使用します。

    • evt
      タイプ:Event

      jQuery イベント オブジェクト。

    • ui
      タイプ:Object

        • owner
          タイプ:Object

          GroupBy ウィジェット オブジェクトにアクセスします。

        • owner.grid
          タイプ:Object

          グリッド ウィジェット オプションにアクセスします。

        • key
          タイプ:String

          グループ化される列のキーを取得します。

        • layout
          タイプ:Object

          ある場合、現在のレイアウト オブジェクトへの参照を取得します。

    コード サンプル

             
            //Bind after initialization
            $(document).delegate(".selector", "iggridgroupbymodaldialogungroupingcolumn", function (evt, ui) {
                //return browser event
                evt.originalEvent;
    
                //	Get a reference to the igGridGroupBy widget that fired the event.
                ui.owner;
    
                //	Get a reference to the igGrid widget to which the igGridGroupBy is bound.
                ui.owner.grid;
                
                //	Get the key of the column to be grouped.
                ui.key;
                
                //	Get a reference to the current layout object, if any.
                ui.layout;
            });
            
            //Initialize
            $(".selector").igGrid({
                features: [{
                    name: "GroupBy",
                    modalDialogUngroupingColumn: function (evt, ui) { ... }
                }]
            });  
            
  • checkColumnIsGrouped

    .igGridGroupBy( "checkColumnIsGrouped", key:string, layout:string );

    指定したキーおよびレイアウトを持つ列がグループ化されるかどうかを確認します。

    • key
    • タイプ:string
    • 列のキー。
    • layout
    • タイプ:string
    • レイアウト名。

    コード サンプル

     $(".selector").igGridGroupBy("checkColumnIsGrouped", "ProductID", "Product"); 
  • closeDropDown

    .igGridGroupBy( "closeDropDown" );

    レイアウトのドロップダウンを閉じます。

    コード サンプル

     $(".selector").igGridGroupBy("closeDropDown"); 
  • closeGroupByDialog

    .igGridGroupBy( "closeGroupByDialog" );

    グループ化のモーダル ダイアログを閉じます。

    コード サンプル

     $(".selector").igGridGroupBy("closeGroupByDialog"); 
  • collapse

    .igGridGroupBy( "collapse", rowId:object );

    • rowId
    • タイプ:object

    コード サンプル

     
            var groupRows = $(".selector").find("tr[data-grouprow]");
    			  groupRows.each(function() {
    				  $(".selector").igGridGroupBy("collapse", $(this).attr("data-id"));
    			  }); 
  • destroy

    .igGridGroupBy( "destroy" );

    グループ化機能オブジェクトを破棄します。

    コード サンプル

     
            $(".selector").igGridGroupBy("destroy");
          
  • expand

    .igGridGroupBy( "expand", rowId:object );

    • rowId
    • タイプ:object

    コード サンプル

     
            var groupRows = $(".selector").find("tr[data-grouprow]");
    			  groupRows.each(function() {
    				  $(".selector").igGridGroupBy("expand", $(this).attr("data-id"));
    			  }); 
  • getGroupedData

    .igGridGroupBy( "getGroupedData", data:array, colKey:string, idval:object );
    返却型:
    array
    返却型の説明:
    グループ化されたデータ レコードの配列。

    指定した列に値によるグループ化されたデータを取得します。注: この関数を呼び出す前に (引数として渡す) データを colKey で並べ替える必要があります。

    • data
    • タイプ:array
    • グループ化に割り当てられる列キー。
    • colKey
    • タイプ:string
    • グループ化に適用される列値。
    • idval
    • タイプ:object
    • groupby 列設定 (プライベート関数 _settingFromKey から取得)。

    コード サンプル

     
          // Sort the data in the grid's data source
          var ds = $(".selector").data("igGrid").dataSource, records;
          ds.sort([{fieldName: "MakeFlag"}], "asc");
          
          // Get all the records that have MakeFlag=true
          records = $(".selector").igGridGroupBy("getGroupedData", ds.dataView(), "MakeFlag", true);
          
  • groupByColumn

    .igGridGroupBy( "groupByColumn", key:string, [layout:string], [sortingDirection:object] );

    列によるグループ。

    • key
    • タイプ:string
    • 列キー - 指定したキーを持つ列によってグループ化します。
    • layout
    • タイプ:string
    • オプション
    • Layout は任意のパラメーターです。設定されると、グループ化された列がルート レベルではなく、子レイアウト列であることを意味します。
    • sortingDirection
    • タイプ:object
    • オプション
    • 設定されない場合、defaultSortingDirection オプションから取得されます。

    コード サンプル

     
            $(".selector").igGridGroupBy("groupByColumn", "columnKey", "layout");
          
  • groupByColumns

    .igGridGroupBy( "groupByColumns" );
    返却型:
    object
    返却型の説明:
    現在グループ化されている列のコレクションを返します。

    列をグループ化列のリストに追加し、グループ化操作を実行して、ビューを更新します。

    コード サンプル

     
            var groupedColumns = $(".selector").igGridGroupBy("groupByColumns"); 
          
  • openDropDown

    .igGridGroupBy( "openDropDown" );

    レイアウトのドロップダウンを開きます。

    コード サンプル

     $(".selector").igGridGroupBy("openDropDown"); 
  • openGroupByDialog

    .igGridGroupBy( "openGroupByDialog" );

    グループ化のモーダル ダイアログを開きます。

    コード サンプル

     $(".selector").igGridGroupBy("openGroupByDialog"); 
  • renderGroupByModalDialog

    .igGridGroupBy( "renderGroupByModalDialog" );

    グループ化のモダル ダイアログおよびそのコンテンツを描画します。

    コード サンプル

     $(".selector").igGridGroupBy("renderGroupByModalDialog"); 
  • ungroupAll

    .igGridGroupBy( "ungroupAll" );

    グループ化列のリストをクリアして、ビューを更新します。

    コード サンプル

    		    $(".selector").igGridGroupBy("ungroupAll");
    	    
  • ungroupByColumn

    .igGridGroupBy( "ungroupByColumn", key:string, [layout:string] );

    指定した列をグループ化列のリストから解除し、グループ化操作を実行して、ビューを更新します。

    • key
    • タイプ:string
    • 列キー - 指定したキーを持つ列によってグループ解除します。
    • layout
    • タイプ:string
    • オプション
    • Layout は任意のパラメーターです。設定されると、グループ化された列がルート レベルではなく、子レイアウト列であることを意味します。

    コード サンプル

     
            $(".selector").igGridGroupBy("ungroupByColumn", "columnKey", "layout");
          
  • ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator

    グループ化ダイアログの昇順に並べ替えた列のインジケーターに適用されるクラス。
  • ui-button-icon-primary ui-icon ui-icon-arrowthick-1-n

    グループ化ダイアログの昇順に並べ替えた列のアイコン インジケーターに適用されるクラス。
  • ui-button ui-corner-all ui-button-icon-only ig-sorting-indicator

    グループ化ダイアログの降順に並べ替えた列のインジケーターに適用されるクラス。
  • ui-button-icon-primary ui-icon ui-icon-arrowthick-1-s

    グループ化ダイアログの降順に並べ替えた列のアイコン インジケーターに適用されるクラス。
  • ui-state-hover

    ボタンのホバー状態に適用されるクラス。
  • ui-iggrid-dialog-groupedbuttons ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-igbutton ui-widget-content ui-igbutton-remove

    グループ化ダイアログの列のグループ化を解除するボタンに適用されるクラス。
  • ui-button-icon-primary ui-icon ui-icon-circle-close

    グループ化ダイアログのすべての (グループ化されない) 列を含むコンテナーに適用されるクラス。
  • ui-iggrid-groupby-dialog-groupedcolumns

    グループ化ダイアログのグループ化される列のコンテナーに適用されるクラス。
  • ui-iggrid-dialog-text

    グループ化ダイアログの各グループ化される列の列名コンテナーに適用されるクラス。
  • ui-widget-content

    グループ化ダイアログの各グループ化される列に適用されるクラス。
  • ui-iggrid-dialog-layouts-dd ui-widget-content ui-corner-all ig-combo-icon-container

    グループ化ダイアログのレイアウト ドロップダウンを含むコンテナーに適用されるクラス。
  • ui-icon ui-icon-triangle-1-s ui-iggrid-dialog-layouts-dd-button

    グループ化ダイアログのレイアウト ドロップダウン ボタンに適用されるクラス。
  • ui-iggrid-dialog-layouts-dd-field

    グループ化ダイアログのレイアウト ドロップダウン フィールドに適用されるクラス。
  • ui-iggrid-dialog-list-groupedcolumns

    グループ化ダイアログのグループ化される列のリストに適用されるクラス。
  • ui-iggrid-dialog-list-ungroupedcolumns

    グループ化ダイアログの (グループ化されない) 列のリストに適用されるクラス。
  • ui-iggrid-dialog-groupby-button

    グループ化ダイアログの (グループ化されない) 列のグループ化ボタンに適用されるクラス。
  • ui-iggrid-dialog-text

    グループ化ダイアログの各 (グループ化されない) 列の列名コンテナーに適用されるクラス。
  • ui-widget-content

    グループ化ダイアログの各 (グループ化されない) 列に適用されるクラス。
  • ui-iggrid-groupby-dialog-ungroupedcolumns

    グループ化ダイアログのグループ化されない列のコンテナーに適用されるクラス。
  • ui-iggrid-dragmarkup

    ドラッグされているマークアップに適用されるクラス。
  • ui-iggrid-featurechooser-dropdown-dialog ui-widget ui-widget-content ui-corner-all

    グループ化ダイアログのレイアウト ツリーを含むコンテナーに適用されるクラス。
  • ui-iggrid-header ui-widget-header

    ヘッダー内で描画されるセルによる特殊グループに適用されるクラス (最初の小さい空のセル)。
  • ui-icon ui-iggrid-icon-groupby

    機能選択のグループ化項目に適用されるクラス。
  • ui-widget-content ui-iggrid-footerextracell

    フッター内で追加描画されたセルに適用されるクラス。
  • ui-iggrid-groupbyarea

    領域ごとのグループに適用されるクラス。ここでは列ヘッダーをドロップできます。
  • ui-iggrid-groupbyareahover

    ラベルをドラッグして、ドロップする前に groupby 領域の上にいるときに適用されるクラス。
  • ui-iggrid-groupbyareatext

    領域ごとのグループ内のテキスト コンテナーに適用されるクラス。
  • ui-icon ui-iggrid-expandbutton ui-icon-plus

    グループ行が折り畳まれる場合に、展開スパン要素ごとのグループに適用されるクラス。
  • ui-icon ui-iggrid-expandbutton ui-iggrid-expandbuttonexpanded ui-icon-minus

    グループ行が展開される場合に、展開スパン要素ごとのグループに適用されるクラス。
  • ui-iggrid-expandcolumn

    groupBy 展開 TD セルに適用されるクラス。
  • ui-iggrid-last-emptycell

    展開セルの前に以前の空のセルに追加されるクラス。
  • ui-icon ui-icon-circle-close ui-iggrid-groupbyremovebutton

    groupBy 領域でドロップされる各列ラベルに対して表示される削除ボタンに適用されるクラス。ボタンはホバーで表示されます。
  • ui-iggrid-groupedcolumnlabel ui-state-default

    列ヘッダーがそこにドロップされる場合に、groupBy 領域で描画される LI に適用されるクラス。
  • ui-iggrid-groupbylabelrightedge

    bread-crumb の中間にある場合に、groupBy 列ラベルの右端に適用されるクラス。
  • ui-iggrid-groupbylabelrightedgeend

    右側にそれ以上のラベルがない場合に、三角形に表示されるように groupBy 領域の bread-crumb ラベルの右端に適用されるクラス。
  • ui-iggrid-groupedcolumnlabeltext

    group by ラベル内のテキストに適用されるクラス。
  • ui-iggrid-groupbylayoutlabel

    グリッドが階層型の場合に、groupBy 列ラベルの前の columnLayout 名を指定するテキスト コンテナーに適用されるクラス。
  • ui-iggrid-groupedrow

    すべてのグループ行 TR に適用されるクラス。
  • ui-iggrid-expandheadercellgb

    ヘッダー内で追加描画されたセルに適用されるクラス。
  • ui-iggrid-groupby-dialog-layoutscontainer

    グループ化ダイアログのレイアウト コンテナーに適用されるクラス。
  • ui-iggrid-groupby-dialog-tree

    グループ化ダイアログのレイアウト ツリーのコンテナーに適用されるクラス。
  • ui-iggrid-nongrouprowemptycell

    グループ化された行ではなく、データ セルの前で描画される全てのセルに適用されるクラス。これは、データ行とグループ化された行を適切に整列させるために必要です。

Copyright © 1996 - 2024 Infragistics, Inc. All rights reserved.