PDA

View Full Version : CheckboxGroup dynamic items



foxmarco
19 Jun 2011, 11:11 PM
I would like to implemet a CheckboxGroup where the items are loaded by internal Store. I've tried without success.

My final result is:

1) Firefox is ok, all items are loaded and rendered.
2) Explorer all items are loaded but the only first element are rendered correctly the others are not rendered because the container height is not enough.

Any idea?

foxmarco
20 Jun 2011, 6:39 AM
My question is about checkboxgroup.... plz move your question to another thread!!!

Thanks

foxmarco
2 Nov 2011, 1:44 AM
any idea?

Romick
22 Nov 2011, 9:03 AM
{
title: 'Shared Searches',
id: 'sharedSearches',
xtype: 'fieldset',
defaults:
{
xtype: 'checkbox',
overCls: 'sharedSearches-hover',
name: 'add_search'
},
padding: '5px 5px 25px 5px',
//collapsible: true,
height: 100,
layout:
{
type: 'table',
columns: 3,
tableAttrs:
{
style:
{
width: '100%'
}
}
},
autoScroll: true,
name: 'sharedSearches'
}

var sharedSearch = action.result.data.sharedSearches;
for(var i = 0; i < sharedSearch.length; i++){
sharedSearches.add({
boxLabel: sharedSearch[i].title,
inputValue: sharedSearch[i].id,
checked: sharedSearch[i].select,
id: sharedSearch[i].id
});