Sigma Php Ajax framework, Ajax Components, GUI Builder
February 04, 2012, 02:28:04 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: treeGrid type "number" don't work  (Read 564 times)
gikotim
Sr. Member
****
Posts: 49


View Profile
« on: March 07, 2010, 02:09:02 AM »

Hi!
when I specify "number" as type in a treeGrid I can only enter numbers, BUT no sign. It's not possible to enter -12.34
This looks like a bug to me.

Kind regards
Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #1 on: March 07, 2010, 04:55:35 PM »

The latest code in svn fixed this bug.
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #2 on: March 07, 2010, 10:37:26 PM »

yes and no.
It's getting worse: -0.4 works now
BUT: -0.000045 is just rounded to 0 !!

every number smaller than two digits gets rounded.

Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #3 on: March 07, 2010, 11:19:26 PM »

The default precision of ComboInput is 2, you should set precision property to this cell(or header, or row)
Logged
gikotim
Sr. Member
****
Posts: 49


View Profile
« Reply #4 on: March 07, 2010, 11:33:16 PM »

sorry, I don't know how to specify this.


don't work. Can you help me?
Logged
linb
Administrator
Hero Member
*****
Posts: 433


View Profile
« Reply #5 on: March 08, 2010, 02:11:46 AM »

grid.setHeader([{id:'col1'},{id:'col2',type:number,editorProperties:{"precision":"8"}}]);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!