EasyUI Forum
December 21, 2025, 11:33:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: numberbox within a datagrid decimalseparator  (Read 14142 times)
jaimi
Full Member
***
Posts: 121


View Profile
« 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 (.)?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 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?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: October 08, 2016, 02:06:31 AM »

Please show a live example to demonstrate your issue.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!