using next code:
<dxe:spinedit name="spin1" isenabled="{binding data.isenabled}" mask="###.######" masktype="numeric"/>
i select mask format in base of random value. kind of(pseudocode):
if (value1 == 1) { mask="###.######" } else { mask="###.##" }
i working in idea (it defined in own grid):
<dxg:formatcondition expression="[value1] = '1'" fieldname="spin1"> <dxg:format /> </dxg:formatcondition>
but how define mask in formatcondition specific case? can´t figure out...
well, got own...
just sharing if need it...
my idea send param viewmodel define mask in spin edit.
<dxg:gridcolumn fieldname="value1" allowediting="true" width="80"> <dxg:gridcolumn.celltemplate> <datatemplate> <border background="#ffff99"> <dxe:spinedit name="spineditvalue1" mask="{binding data.value1mask}" masktype="numeric" maskuseasdisplayformat="true"/> </border> </datatemplate> </dxg:gridcolumn.celltemplate> public string value1mask { { if (designation == 1) { return "###.##%"; } else { return "###.######"; } } }
Comments
Post a Comment