GridView for ASP.NET Web Forms
groupText イベント
jQuery.wijmo.c1gridview 名前空間 > options タイプ : groupText イベント
The jQuery.Event object.
The data with this event.
The groupText event handler is a function that is called when groups are being created and the groupInfo option has the groupInfo.headerText or the groupInfo.footerText options set to "custom". This event can be used to customize group headers and group footers.
シンタックス
var options; //タイプ: jQuery.wijmo.c1gridview.options 

//新しいウィジェットc1gridviewを作成
$(".selector").c1gridview(options);

//以前はc1gridviewで作成されたウィジェットのインスタンスを取得
var widgetInstance; //タイプ: jQuery.wijmo.c1gridview
widgetInstance = $(".selector").data("wijmo-c1gridview");

%JQueryMemberName%イベントハンドラ関数を設定する 
widgetInstance.option("groupText", function (e, args) { } );
groupText = function ( 
   e : Object,
   args : wijmo.grid.IGroupTextEventArgs
) { };

パラメータ

e
The jQuery.Event object.
args
The data with this event.
使用例
// The following sample sets the groupText event handler to avoid empty cells. The custom formatting applied to group headers left certain cells appearing as if they were empty. This code avoids that:
$("#element").wijgrid({
	groupText: function (e, args) {
		if (!args.groupText) {
			args.text = "null";
		}
	}
});
解説
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ groupText: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridgrouptext", function (e, args) { // some code here });
関連トピック

参照

options タイプ
c1gridview jQuery ウィジェット