The addColumn adds a new column to the widget. In order for the column to be displayed, you need to refresh the widget by calling its "refresh" method.
Syntax | lst.addColumn(params); lst.refresh(); |
---|---|
Parameters | params : Required. Hashtable with the column's properties. |
Returns | The newly created TD element. |
lst.addColumn({ bgcolor:'#FFFFFF', width:'40%', caption:'Column Displayed name', name:'the corresponding dataset name', type:'int or bool or Date, default str', xform:'data transformation function', sortable:true, format: 'date display format', align:'right', resizable;true }); lst.refresh();