[pve-devel] combo box help

Dietmar Maurer dietmar at proxmox.com
Wed Jul 13 08:32:46 CEST 2011


Also, the following properties are helpful:

		name: 'groups',
		multiSelect: true,

- Dietmar

> I also use the 'pve-groups' model instead of 'combo-groups' (whatever that is),
> and set autoLoad to true:
> 
>             new Ext.form.ComboBox({
>                 fieldLabel: 'Group',
>                 hiddenName: 'groupid',
>                 store: new Ext.data.Store({
> 		    autoLoad: true,
>                     model: 'pve-groups',
>                     proxy: {
>                         type: 'pve',
>                         url: "/api2/json/access/groups"
>                     },
>                     sorters: {
>                         property: 'groupid',
>                         order: 'DESC'
>                     }
>                 }),
>                 valueField: 'groupid',
>                 displayField: 'groupid',
>                 typeAhead: true,
>                 queryMode: 'local',
>                 triggerAction: 'all',
>                 emptyText: 'No Groups Selected',
>                 selectOnFocus: true
>             })
> 
> - Dietmar



More information about the pve-devel mailing list