User107

User107

  • NA
  • 28
  • 17.8k

show large selected item names textscaption dropdowncheckbox

Sep 19 2016 4:22 AM
In my web application, i have many dropdowncheckboxes but i need to display what i select all the items i need to show on the dropdowncheckboxes of the texts caption box.when i select small items names it shows perfectly.It will not show properly by selecting the large item names on texts caption box. i want to show large item names properly. when i select that large items and select by mouse those names and move arrows buttons (keyboard keys) on texts caption of dropdowncheckboxes it will show all the names without change the dropdowncheckboxes width is it possible to do.<br /><br />aspx:<br /><br />&lt;%@ Register Namespace="Saplin.Controls" Assembly="DropDownCheckBoxes" TagPrefix="asp"%&gt;<br />&lt;asp:DropDownCheckBoxes ID="dropdown1" runat="server" UseSelectAllNode="true" <br />UseButtons="true" OnSelectedIndexChanged="dropdown1_SelectedIndexChanged" AutoPostBack="true"&gt;<br />&lt;Style DropDownBoxBoxWidth="200"/&gt; &lt;/asp:DropDownCheckBoxes&gt; <br /><br />.CS:<br /><br />protected void dropdown1_SelectedIndexChanged(object sender, EventArgs e) <br />{<br /> List&lt;String&gt; checkedList = new List&lt;string&gt;();<br /> foreach (ListItem item in dropdown1.Items) <br />{ <br />if (item.Selected)<br /> { <br /> checkedList.Add(item.Text);<br /> }<br /> } <br />dropdown1.Texts.SelectBoxCaption = String.Join(",", checkedList);<br />}<br /><br />how can i do this can anyone please help me<br />Thank you <br />

Answers (4)