This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* 取引伝票の発行 伝票一覧 PartialView <_sellistOndm> *@ | |
@using Infragistics.Web.Mvc; | |
@model Infragistics.Web.Mvc.GridModel | |
@Scripts.Render("~/bundles/infragistics.loader") | |
@(Html.Infragistics().Loader() | |
.ScriptPath(Url.Content("~/Scripts/IG/js/")) | |
.CssPath(Url.Content("~/Content/IG/css/")) | |
.Theme("metro").Render() | |
) | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Infragistics.Web.Mvc; | |
他割愛 | |
//===================================================================================================== | |
//■ロードオンデマンド方式グリッド Viewを返します | |
//===================================================================================================== | |
//売上伝票 一覧PartialView作成 | |
[Authorize] | |
[ValidateAntiForgeryToken] | |
[AjaxOnly] | |
public ActionResult _sellistOndm(Joken joken) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...割愛... | |
//GridModelParam.Child には事前に子階層の生成に必要な情報をセットしている前提です。 | |
GridColumnLayoutModel gridColumnLayoutModel = GetChildModel(GridModelParam.Child, "Child1"); | |
//GridColumnLayoutModelを ColumnLayoutsに追加 | |
ColumnLayouts.Add(gridColumnLayoutModel); | |
...割愛... | |
//--------------------------------------------------------------------------- | |
//子階層のセット | |
public GridColumnLayoutModel GetChildModel(GridModelChildParam gm,string key) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* 伝票一覧グリッド *@ | |
@(Html.Infragistics() | |
.Grid<Den_List>() | |
.ID("gridList") | |
.LoadOnDemand(false).AutoGenerateColumns(false).AutoGenerateLayouts(false) | |
.PrimaryKey("HogeId").Width("730px").Height("570px") | |
.Columns(column => | |
{ | |
column.For(x => x.HogeId).DataType("number").Hidden(true); //PrimaryKey | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//抜粋 | |
fatures.Updating().EditMode(GridEditMode.Row) | |
.ColumnSettings(settings => | |
{ | |
settings.ColumnSetting().ColumnKey("LanguageNameID").Required(true) | |
.EditorType(ColumnEditorType.Combo) | |
.ComboEditorOptions(options => | |
{ | |
options.DataSourceUrl(Url.Action("GetLanguageNameIDList")); | |
options.Mode(ComboMode.DropDown); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Controller 抜粋 | |
public ActionResult Index() | |
{ | |
//コンボリスト用のデータソースをViewBagにセットする | |
IList<cmbdata> data = GetLanguageNameIDList(); | |
ViewBag.LanguageNameIDList = data; | |
return View(); | |
} | |
//cshtml 抜粋 |