Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
editrules number don't know the thousand bits
13/08/2010
13:02
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

hi, I have a big prblem column, which's colmodel is :

 {name:'factvalue', index:'factvalue',width:80,align:'center',editrules:{required:true,number:true},sorttype:'int',editable:true,classes:"JqGrid"},

So you see, the editrule is set number: true. and I could celledit it well. if I input a none-number, it will show a messagebox to say the factvalue colum need a number.

But, the big problem is, if I put in the number contain a  thousand bits, just like: '2,000.00', it dont know it, and also report that factvalue colum need a number! That's very bad, because if we have a big number, ofcause we need the thousand bits.

yours,

Ivan

17/08/2010
03:41
Avatar
ivanchain
Member
Members
Forum Posts: 55
Member Since:
11/03/2010
sp_UserOfflineSmall Offline

any one know this? thank you!

17/08/2010
06:44
Avatar
steve.longdo
Member
Members
Forum Posts: 6
Member Since:
13/08/2010
sp_UserOfflineSmall Offline

grid.common.js just checks isNaN(val) for numeric edit rules.  Looks like there is some sort of support for custom edits with a callback function around line 620 of grid.common.js.  You would need to write your own to handle your thousands separator.  Good Luck!  🙂

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information