In set_col_edittype() you shouldt configure enum type columns to be "select" type with each enum listed in a pulldown item by default
Enum type columns currently by default just look like text fields and anybody could just type some invalid value in there and mess things up. If by default it would just show a pulldown list of options things would be easier and less error prone, ya know?
 Anonymous
    
 shared this idea
Anonymous
    
 shared this idea
      
    - 
       Anonymous
    
 commented Anonymous
    
 commentedI just noticed ... you would use "one:one;two:two;three:three" as third parameter to 'set_col_edittype() '. Is this intuitive? I guess so. 
- 
       Anonymous
    
 commented Anonymous
    
 commentedThat's right and "SHOW COLUMNS FROM {$table} WHERE Field = '{$field}'" together with "preg_match('/^enum\((.*)\)$/', $type, $matches);" might help here. For the time being... How would use 'set_col_edittype()' exactly if I want to refelct aa enum of, say, ('one','two','three')? The initial value of the enum field is also not shown in the Grid when loaded in connection with the usage of 'set_col_edittype()', at least not for me here. 
