开发者

I want to display only one item at a time in checkboxlist n provide scroll bar when we click on checkboxlist for multiselection

i want a checklistbox as a dropdow开发者_JAVA百科nlist with checkbox inside. means it must provide scroll bars in checkboxlist n show 1 item at first.


Wrap your CheckBoxList in a <div>.

CSS:

#wrapper{ border:solid 1px #aaa; height:20px; width:300px; overflow:auto;}

HTML:

<div id="wrapper">
   <asp:CheckBoxList ID="chkBoxes" runat="server" ></asp:CheckBoxList>
</div>

Then use javascript to change the styling (CSS) of the <div> on the onclick event.

Here's an implementation example: http://www.codeproject.com/KB/webforms/MultiSelect.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜