【问题标题】:Multiselect checkboxes List not displayed in window with scroll bar多选复选框列表未显示在带有滚动条的窗口中
【发布时间】:2016-01-25 11:51:29
【问题描述】:

我有一个要求,我想用复选框显示机会字段。 我已经使用 selectCheckBoxes 完成了这项工作,但我无法在我的 Vf 页面中的一个小框中显示内容,并带有滚动条,如图所示enter image description here 但我得到的列表如下:enter image description here

示例代码---

<apex:pageBlockSectionItem >
        <apex:outputPanel >
             <apex:outputLabel value="Choose the query fields below." ></apex:outputLabel>
             <apex:outputPanel >
                <apex:selectCheckboxes layout="pageDirection" value="{!getfieldname}" borderVisible="true" >
                   <apex:selectOptions value="{!listCustomFields}"></apex:selectOptions>
               </apex:selectCheckboxes>
             </apex:outputPanel>  
        </apex:outputPanel>

谁能帮我解决这个问题?

【问题讨论】:

  • 为字段集添加了样式,现在它的工作

标签: salesforce apex-code visualforce


【解决方案1】:

为字段集添加了样式,现在它就像我想要的那样

<style>
            fieldset{
                        height: 84px;
                        width: 181px;
                        overflow: auto;
                    }
    </style>

【讨论】:

    猜你喜欢
    • 2021-10-14
    • 1970-01-01
    • 2011-02-18
    • 1970-01-01
    • 2019-03-06
    • 1970-01-01
    • 2022-01-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多