function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
yarramyarram 

How to Split List of Check boxes into Three lines.

Hi All,

 

I have Check Box List, Size of that List is 30 and Those List of Check Boxes are displayed in VF page. Check Boxes are OVERFLOW of that page.

 

How can I split Check Boxes into Three Lines each line 10 check boxes.

 

Below is my code.............

// Controller Code...............

 

 

public String Blocks {get;set;}
public List<SelectOption> getCheckboxes()
{
List<SelectOption> CheckboxLists = new List<SelectOption>();
for(Integer i=1;i<=30;i++)
{
CheckboxLists.add(new SelectOption(String.valueOf(i),String.valueOf(i)));
}
return CheckboxLists;
}

 

//VF Code........................
<apex:selectCheckboxes value="{!Blocks }">
<apex:selectOptions value="{!Checkboxes}"/>
</apex:selectCheckboxes>

 

Please give me the help. How to Split those.

 

Thanks.

Yarram.