View Full Version : lovcombo list depand of checkbox

20 Jun 2011, 11:17 AM
Hi everybody,
I am now trying for hours and hours but found no solution for my problem.

I use Saki`s lovcombo (big thx to Saki) and an JSON store to read some Data from DB.
Everything works well but now I want to get some Data depends to some checkboxes.

For example:
user has 3 checkboxes
and see the lovcombo.
when he open the lovcombo he can see all the items from all 3 menus but now if he clicks one of the checkboxes the lovcombolist should be reloaded with just the items of the menu which user selects.

this is how i load data

var jdata2 = new Ext.data.JsonStore({
autoLoad: true
, url: 'json_data.php'
, method: 'GET'
, root: 'daten'
, fields: ['myId','displayText']

and the lovcombo

var lc = new Ext.ux.form.LovCombo({
,store: jdata2
,valueField: 'myId'
,displayField: 'displayText'
But now I even have no idea what to do.
I gues i have to put an event handler to the checkboxes to call an reload function and to reset the information in the locombo.
An idea, codesnippet or an tutorial would help me

Thx in advance