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
435
Setting a dynamic max value in an editor
posted

I have a grid that allows users to enter a payment amount, however I want the validator to allow up to the amount due. 

So consider the following column setting (code snipped for brevity)

update.ColumnSetting().ColumnKey("AmountToPay")
.EditorType(ColumnEditorType.Currency)
.Required(true)
.Validation(true)
.EditorOptions("button:'spin', maxValue:0"); // Is there anyway to set the max value equal to the value of another column called "AmountDue" which is also in the grid?