Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi Column Combo in ExtJs

I am new to Ext Js Framework. Can any one Tell me Is there any Multi column Combo Exist in this Framework. I want a Combo box Which Displays More than One Columns When User Clicks on it.

Any Help Will be appreciated.

like image 476
Uzair Anwaar Avatar asked Apr 27 '26 08:04

Uzair Anwaar


2 Answers

use 'tpl' : The template string, or Ext.XTemplate instance to use to display each item in the dropdown list

check this

like image 83
MMT Avatar answered Apr 28 '26 20:04

MMT


In this you need to use the displayTpl

tpl: Ext.create('Ext.XTemplate',
  '<tpl for=".">',
    '<div class="x-boundlist-item">{firstName} {lastName} {email}</div>',
  '</tpl>'
),
displayTpl: Ext.create('Ext.XTemplate',
  '<tpl for=".">',
    'firstName} {lastName} {email}',
  '</tpl>'
)
like image 43
Akshat M Avatar answered Apr 28 '26 21:04

Akshat M