Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Cannot read property 'format' of null MVC Iggrid
posted

@(Html.Infragistics()
.Grid(Model.HtmlOrderItems)
.ID("grid")
//.Height("120%")
.Width("100%")
.AutoGenerateColumns(false)
.AutoGenerateLayouts(false)
.RenderCheckboxes(true)
.LocalSchemaTransform(true)
.PrimaryKey("oitemsid")
.Columns(column =>
{
column.For(x => x.oitemsid).Hidden(true).HeaderText("OID");

column.For(x => x.childOutterHtmlstart).HeaderText("Outer HTML").Width("*");
column.For(x => x.LinkOuterInnerHtml).HeaderText("Link OuterInner").Width("*");
column.For(x => x.RepeatStrategy).HeaderText("RepeatStrategy").Width("*");


})
.Features(features =>
{
features.Selection().Mode(SelectionMode.Row).MultipleSelection(false).Activation(true);
//features.Sorting().Type(OpType.Local);
// features.Paging().Type(OpType.Local);
//features.Filtering().Type(OpType.Local);
features.RowSelectors().RequireSelection(true).EnableRowNumbering(true);
features.Hiding();
// features.RowSelectors().RequireSelection(true);
features.Updating()
.EditMode(GridEditMode.Row)
.EnableDeleteRow(true)
.EnableAddRow(true)
.ColumnSettings(cs =>
{

cs.ColumnSetting().ColumnKey("childOutterHtmlstart").EditorType(ColumnEditorType.Text);
cs.ColumnSetting().ColumnKey("LinkOuterInnerHtml").EditorType(ColumnEditorType.Checkbox).DefaultValue(0);
cs.ColumnSetting().ColumnKey("RgxOuterHtmlFilter").EditorType(ColumnEditorType.Text);

});

})

.DataSourceUrl(Url.Content("page1?locationid=" + Model.LocationId))
.UpdateUrl("page2?locationid=" + Model.LocationId + "&clientid=" + Model.ClientId)

.Render()
)

The issue it on Column "childOutterHtmlstart". 

childOutterHtmlstart value is  =  Coming from SQL Server as a VarchChar(350)

<div style='position:absolute;left:69px;|<div style='position:absolute;left:71px;|<div style='position:absolute;left:72px;

If I change the value down to <div style='position:absolute;left:69px;|<div style='position:absolute;left:71px;|<div style someithing about that 3rd = that is causing the issue. 

Is there a setting that I can change this field to, to get around the error?