Categories | Question details Back To List | ||
Case handling in edit boxes Is there a way to force the case of whatever the user types? Some javascript text objects have properties like "properCase" (forces all first letters in a line to be upper case, for instance). Thanks Answer posted on Nov 20, 2007 03:53 It possible to create special excell which will do the same, or you can use onEditCell event for such purpose mygrid.attachEvent("onEditCell", function(stage,id,index,new_val){ if (stage==2 && index==INDEX) return (new_val||"").toString().toLowerCase(); return true; }); such code will convert any value entered in in cell inside column INDEX to lower case |