EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on October 07, 2016, 02:09:57 AM



Title: numberbox within a datagrid decimalseparator
Post by: jaimi on October 07, 2016, 02:09:57 AM
I defined the editor of a field within a datagrid as type of numberbox.
If I don't define the decimalSeparator I am not able to set one at the field.
If I define others than a comma (,) I am not able to set one eather.
Only I define the comma (,) I can set a comma by the "normal" keyboard but not by the numblock.
How to deal with that? Any examples?
Code:
 ,{field:'ZSP_TRAB',title:'Trab',width:100,sortable:'true',align:'left'
      ,editor:{ type:'numberbox'
              ,options:{ required:true
            ,missingMessage:'Geben Sie die Note für den Trab ein.'
            ,prompt:'Trab-Note...'
,precision:2
,decimalSeparator:'.'
,max:10
   }
  }//editor
    }//field

How do I have to set the formatter so that the number apears with a comma and not with a dot (.)?


Title: Re: numberbox within a datagrid decimalseparator
Post by: stworthy on October 07, 2016, 08:12:30 PM
Please look at this example http://www.jeasyui.com/demo/main/index.php?plugin=NumberBox&theme=default&dir=ltr&pitem=Format%20NumberBox

The 'decimalSeparator' property can be set with comma, dot, etc.


Title: Re: numberbox within a datagrid decimalseparator
Post by: jaimi on October 08, 2016, 12:14:35 AM
I understand the concept and I programmed it like the examples.
But the behavior is not as expected / described.
Could you please refer to my problem-description?


Title: Re: numberbox within a datagrid decimalseparator
Post by: stworthy on October 08, 2016, 02:06:31 AM
Please show a live example to demonstrate your issue.