I have tried to set a default value for a number column like this:
pCs.ColumnSetting().ColumnKey("StyleKey").DefaultValue(@Model.Pk); // doesn't works. pCs.ColumnSetting().ColumnKey("StyleKey").DefaultValue(Model.Pk); // doesn't works either.
but that produce error. The only thing that works is:
pCs.ColumnSetting().ColumnKey("StyleKey").DefaultValue(@Model.Pk.ToString()); // this works but I want a number, not string.
but StyleKey is number and that renders a string.
How to set a default number value using razor?