Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
igGrid 2014 対策 RowTemplate-->Columns.Template
Revise code for the c igGrid 2014 Volume 1
.RowTemplateを使っていた場合は、column.Templateに移動します。
例:画像の表示
-------------------------------------------------------------------------
.RowTemplate
(
"<tr>" +
"<td ><IMG SRC=${ImageUrl} style = 'width:20px;height:20px'></IMG></td>" +
"</tr>"
)
-- ↓↓ ---------------
.Columns(column =>
{
column.For(x => x.ImageUrl).HeaderText("ICON").Width("70px").DataType("string")
.Template("<IMG SRC=${ImageUrl} style = 'width:20px;height:20px'></IMG>");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment