var list=Table_1.getDataSource().getMembers("State",5000); //List of members to be added to the checkbox
var j=0;
for(var i=0;i<list.length;i++)
{
if(list[i].id.length!==0) //To remove null values
{
Actual_list[j]=list[i].description;
j++;
}
}
for(i=0;i<Actual_list.length;i++) // Add items to Checkbox
{
CheckboxGroup_2.addItem(Actual_list[i],Actual_list[i]);
}
CheckboxGroup_2.setSelectedKeys(Actual_list); //Select all as default
Selected_list=Actual_list;
//Selected_list - Current selected list to apply filter etc
//Actual_list - Standard list to compare the selection
var selection=this.getSelectedTexts();
if(selection[0]==="All")
{
Selected_list=Actual_list;
//Add Filter script
}
else
{
Selected_list=[""];
//Add Filter script
}
CheckboxGroup_2.setSelectedKeys(Selected_list);
var selection=this.getSelectedTexts();
if(selection.length===Actual_list.length)
{
CheckboxGroup_1.setSelectedKeys(["All"]);
//Add Filter script
}
else
{
CheckboxGroup_1.setSelectedKeys([""]);
//Add Filter script
}
//Select All
CheckboxGroup_2.setSelectedKeys(Selected_list);
//Add Filter script
//De-Select All
CheckboxGroup_2.setSelectedKeys([]);
//Add Filter script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |