Docs
API
  • listTpl

    String

    This property is used for only combo colomn.
    listTpl is template for left side of combo editor.

    This property is used for advanced templating combo.
    Templating combos is one the most complex issue.

    Example

    
    columns: [{
      index: 'country',
      title: 'Country',
      type: 'combo',
      displayKey: 'text',
      valueKey: 'text',
      minEditorWidth: 150,
      minListWidth: 150,
      leftTpl: '<span class="flag {cls}"></span> l ',
      leftWidth: 35,
      listItemTpl: '<span class="flag {cls}"></span> <span class="country">{text}</span>',
      render: function(o){
    	var cls = 'flag-' + coutries[o.value];
    	
    	o.value = '<span class="flag ' + cls + '"></span> <span class="country">' + o.value + '</span>';
    	return o;
      },
      data: {
    	proxy: {
    	  url: 'countries.json'
    	}
      }
    },{
    ...
    

    Default

    
    undefined