EasyUI Forum
November 02, 2025, 05:54:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] changing display values?  (Read 7289 times)
MB34
Newbie
*
Posts: 20


View Profile
« on: April 29, 2015, 03:11:23 PM »

URL: http://www.scic.com/files/website_gatekeeper/

Can't seem to have the Course Type show the same as when the record is in edit mode. I would like to show
OL for val 0
Classroom for val 1
Webinar for val 2

« Last Edit: April 29, 2015, 03:20:32 PM by MB34 » Logged
MB34
Newbie
*
Posts: 20


View Profile
« Reply #1 on: April 29, 2015, 03:20:22 PM »

Code:
columns:[[
   ..
  {field:'type',title:'Course Type',
  width:80,align:'right',
  formatter:function(val,row,index){
      return (val==0?"OL":(val==1?"Classroom":"WB"));
  },
  editor:{type:'combobox',
      options:{name:       'type',
                   valueField: 'val',
                   textField:  'txt',
                   data:       [{txt:'OL',val:'0'},{txt:'Classroom',val:'1'},{txt:'WB',val:'2'}]
                   }
              }
           }
]];
« Last Edit: April 29, 2015, 03:22:48 PM by MB34 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!