GridView for ASP.NET Web Forms
readAttributesFromData オプション
jQuery.wijmo.c1gridview 名前空間 > options タイプ : readAttributesFromData オプション
A value indicating whether DOM cell attributes can be passed within a data value.
シンタックス
//値を取得する
var value; //タイプ: boolean
value = $(".selector").c1gridview("option", "readAttributesFromData");

//値を設定します
var newValue; //タイプ: boolean
$(".selector").c1gridview("option", "readAttributesFromData", newValue);
var readAttributesFromData : boolean;
使用例
// Render the style attribute passed within the data.
$("#element").wijgrid({
	readAttributesFromData: false });
	data: [
		[ [1, { "style": "color: red" } ], a ]
	]
});
解説
This option allows binding collection of values to data and automatically converting them as attributes of corresponded DOM table cells during rendering. Values should be passed as an array of two items, where first item is a value of the data field, the second item is a list of values: $("#element").wijgrid({ data: [ [ [1, { "style": "color: red", "class": "myclass" } ], a ] ] }); or $("#element").wijgrid({ data: [ { col0: [1, { "style": "color: red", "class": "myclass" }], col1: "a" } ] }); Note: during conversion wijgrid extracts the first item value and makes it data field value, the second item (list of values) is removed: [ { col0: 1, col1: "a" } ] If DOM table is used as a datasource then attributes belonging to the cells in tBody section of the original table will be read and applied to the new cells. rowSpan and colSpan attributes are not allowed.
関連トピック

参照

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