Jun 13, 2016, 4:10 PM
Get current model iteration inside "X.ColumnFor"
Hi.
I have this model: List<MyViewModel>:
And i have this columnFor:
thanks in advance
I have this model: List<MyViewModel>:
And i have this columnFor:
X.ColumnFor(Model, m => m.Value)
.ToBuilder<Column.Builder>()
.Text("Valor") //** LITERAL
.Flex(1)
.Editor(
Html.X().TextField().AllowBlank(false).Regex(@"/^([^/*:\""|<>\\]+)+$/") // <--- THIS
),
i want set REGEX like this way:Html.X().TextField().AllowBlank(false).Regex(m.MyRegex)
Where i put "m.MyRegex" in place of the string directly, code does not work. There is anyway for to that ?thanks in advance