Docs
API
  • leftWidth

    Number

    This property is used for only combo colomn.
    leftWidth is width of left side of combo editor.
    This property can be used only if property leftTpl is defined.

    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

    
    20