View Full Version : Display checkbox in combo

11 Feb 2010, 2:37 AM
Hi I'm trying to do a simple extension of the combo box.

I've been able to get a checkbox to appear in the combo dropdown by using a template such as:

'<tpl for=".">'
+'<div class="x-combo-list-item">'
+'<input type="checkbox" class=" x-form-checkbox x-form-field">&nbsp;&nbsp;{tag}'

but the checkbox wont select.

Firstly: whats going on with a standard HTML checkbox inside of a combo that clears its selection?

Secondly: how do I get checkboxes to work?

Cheers for your help :D

11 Feb 2010, 2:58 AM
Never mind - I worked it out. I wasn't updating the actual record so the template was not getting processed again.

11 Feb 2010, 3:12 AM
hi elis_s,

saki has build a wonderful plugin for this. take a look at:

kind regards,

11 Feb 2010, 3:19 AM
Thanks Tobiu,
I'm actually using saki's lovcombo to learn from :)

I need mine to work slightly differently though, so thats why I'm building my own.

Plus there's a bunch of smart stuff that saki is doing that I dont understand... so I figure I should implement it my own (less sophisticated) way hehe :D