Home › Forums › Guriddo jqGrid JS › Help › How I set the column to accept only strings UPCASE?
How I set the column to accept only strings UPCASE? I want use only UPCASE strings in Add window and Edit window!
Hello,
There are some scenarios.( I do not test all of these)
1. Use editoptions
editoptions :{'text-transform': 'uppercase'…}
This will UPCASE these to the user but not when you post them.
2.
function cUpper(cObj) { cObj.value=cObj.value.toUpperCase(); }
After this, in your editoptions use
I'm usingthe code:
…editoptions:{size:64,'text-transform':'uppercase'}…
But nothing happend. When I Add or Edit, the strings no 'uppercase'.
Sorry it is my mistake.
Try
input.uppercase {text-transform: uppercase}
and then
editoptions :{style: 'uppercase'…}
Regards
Tony
I use the function and is OK! Thanks!
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS