@(Html.Infragistics()
.Grid(Model)
.ID("Grid")
.Height("600px")
.Width("1200px")
.AutoGenerateColumns(false)
.AutoGenerateLayouts(false)
.RenderCheckboxes(true)
.PrimaryKey("BreakID")
.FixedHeaders(false)
.Columns(column =>
{
column.For(x => x.SourceCode).HeaderText("Source").Width("70px");
column.For(x => x.ReasonCode).HeaderText("Reason").Width("70px");
column.For(x => x.Comments).HeaderText("Comment").Width("200px");
column.For().HeaderText().Width("70px").Template("{{if ${VerifiedIndicator}=='Y'}}
${IocCode}
{{else}}${IocCode} {{/if}}"); ;
column.For().HeaderText("Transaction").Width("130px").Template("{{if ${VerifiedIndicator}=='Y'}}${TransactionNumber}
{{else}}${TransactionNumber}{{/if}}"); ; ;
column.Unbound("Details").Template("").HeaderText("Details").Width("60px");
column.For(t).HeaderText("").Width("90px").Template("{{if ${VerifiedIndicator}=='Y'}}${Account}
{{else}}${Account} {{/if}}"); ; ;
column.For().HeaderText("").Width("50px").Template("{{if ${VerifiedIndicator}=='Y'}}${Age}
{{else}}${Age} {{/if}}"); ; ;
column.For().HeaderText("").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${CSD}
{{else}}${CSD} {{/if}}"); ; ;
column.For().HeaderText("").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${ISIN}
{{else}}${ISIN} {{/if}}"); ; ;
column.For().HeaderText("").Width("60px").Template("{{if ${VerifiedIndicator}=='Y'}}${TrnType}
{{else}}${TrnType} {{/if}}"); ; ;
column.For().HeaderText("").Width("60px").Template("{{if ${VerifiedIndicator}=='Y'}}${Location}
{{else}}${Location} {{/if}}"); ; ;
column.For().HeaderText("Enter Date").Width("140px").Template("{{if ${VerifiedIndicator}=='Y'}}${CREATED_TS}
{{else}}${CREATED_TS} {{/if}}");
column.For().HeaderText("").Width("60px").Template("{{if ${VerifiedIndicator}=='Y'}}${Checked}
{{else}}${Checked} {{/if}}"); ; ;
column.For().HeaderText("Age>=30").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${Age30DAYS}
{{else}}${Age30DAYS} {{/if}}"); ; ;
column.For().HeaderText("High Risk ").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${HighRiskBIM}
{{else}}${HighRiskBIM} {{/if}}"); ; ;
column.For().HeaderText("Medium Risk ").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${MediumRiskBIM}
{{else}}${MediumRiskBIM} {{/if}}"); ; ;
column.For().HeaderText("Name").Width("150px").Template("{{if ${VerifiedIndicator}=='Y'}}${ClientServiceManager}
{{else}}${ClientServiceManager} {{/if}}"); ; ;
column.For().HeaderText("Multiple").Width("70px").Template("{{if ${VerifiedIndicator}=='Y'}}${MultipleUpdates}
{{else}}${MultipleUpdates} {{/if}}"); ; ;
column.For().HeaderText("Verified").Width("70px").Template("{{if ${VerifiedIndicator}=='Y'}}${VerifiedIndicator}
{{else}}${VerifiedIndicator} {{/if}}");
column.For().HeaderText("Break ID").Width("100px").Template("{{if ${VerifiedIndicator}=='Y'}}${BreakID}
{{else}}${BreakID} {{/if}}"); ; ;
})
.Features(f => { f.Tooltips().Visibility(TooltipsVisibility.Always).ColumnSettings(settings => settings.ColumnSetting().ColumnKey("Comments").AllowTooltips(true)).ShowDelay(100); })
.Features(feature =>
{
feature.Updating().ColumnSettings(cs =>
{
cs.ColumnSetting().ColumnKey("Details").ReadOnly(true);
cs.ColumnSetting().ColumnKey("BreakID").ReadOnly(true);
cs.ColumnSetting().ColumnKey("IocCode").ReadOnly(true);
cs.ColumnSetting().ColumnKey("ClientServiceManager").ReadOnly(true);
cs.ColumnSetting().ColumnKey("CREATED_TS").ReadOnly(true);
cs.ColumnSetting().ColumnKey("TransactionNumber").ReadOnly(true);
cs.ColumnSetting().ColumnKey("TrnType").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Location").ReadOnly(true);
cs.ColumnSetting().ColumnKey("MultipleUpdates").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Account").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Age").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Age30DAYS").ReadOnly(true);
cs.ColumnSetting().ColumnKey("HighRiskBIM").ReadOnly(true);
cs.ColumnSetting().ColumnKey("MediumRiskBIM").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Checked").ReadOnly(true);
cs.ColumnSetting().ColumnKey("VerifiedIndicator").ReadOnly(true);
cs.ColumnSetting().ColumnKey("CSD").ReadOnly(true);
cs.ColumnSetting().ColumnKey("ISIN").ReadOnly(true);
cs.ColumnSetting().ColumnKey("SourceCode").ReadOnly(true);
cs.ColumnSetting().ColumnKey("ReasonCode").ReadOnly(true);
cs.ColumnSetting().ColumnKey("Comments").ReadOnly(true);
}).EnableAddRow(false).EnableDeleteRow(false);
feature.Sorting();
feature.Resizing();
feature.Paging().PageSize(50);
feature.Filtering().Mode(FilterMode.Simple);
})
.DataSourceUrl(Url.Action("GetFreeOfPayment"))
.UpdateUrl(Url.Action("FreeOfPaymentSaveData"))
.DataBind()
.Render()
)
}