DaRkViDe
21 Dec 2010, 7:36 AM
Hi, is it possible to separate in sub-categories the items of a paginated combobox mantaining the correct pagination?
I tried to apply a tamplate to the combobox using a property of my modeldata like:
combo.setSimpleTemplate("<b>{brand}<b> - {model}");
and it works fine but in this case the String of brand is repeated for all rows like:
Brand1 - Model1
Brand1 - Model2
Brand1 - Model3
Brand1 - Model4
Brand1 - Model5
The effect instead i want is:
Brand1
Model1
Model2
Model3
Model4
Model5
Brand2
Model1
Model2
Model3
Model4
Model5
Is it possible to paginate it mantaining the entries ordered by brand?? is there some post that talks about it?
Help thanks
I tried to apply a tamplate to the combobox using a property of my modeldata like:
combo.setSimpleTemplate("<b>{brand}<b> - {model}");
and it works fine but in this case the String of brand is repeated for all rows like:
Brand1 - Model1
Brand1 - Model2
Brand1 - Model3
Brand1 - Model4
Brand1 - Model5
The effect instead i want is:
Brand1
Model1
Model2
Model3
Model4
Model5
Brand2
Model1
Model2
Model3
Model4
Model5
Is it possible to paginate it mantaining the entries ordered by brand?? is there some post that talks about it?
Help thanks