Information to ListBox CheckBox Support
Using the ListBox Control, developers can easily display the listbox items in the form of checkbox by adding a checkbox to each item. After you activating the checkbox support feature, you can check one, more or all items with few clicks.
From this online tutorial page, you will find sample codes on how to add checkboxes to items in the listbox using ASP.NET AJAX. How to Activate CheckBox Feature Programmatically
In this section, we will offer detailed programming example for you on how to add checkbox next to the item in the listbox.
With the ListBox control, it is an easy task to add checkboxes to the items in the listbox. What you need to do is to set the CheckBoxes property to true. Then there will be a checkbox appearing next to each item in the listbox.
The following example is used to show you how to display the listbox items in the form of checkbox. <kettic:PerListBox ID="PerListBox1" runat="server" CheckBoxes="true" ShowCheckAll="true" Width="220px"
To help you have a better understanding of the result of above listbox checkbox enabling application, we attach an image here.
Explanation: from above attached image, you will find there is checkbox called Check All. Sometimes, we may need to select all the items of the listbox. And it will be time consuming if the target listbox has a large number of items. Therefore, to save time in checking all the items in the listbox, the PerListBox control offers a property called ShowCheckAll. If you set this property to true, then the Check All checkbox will appear in front of all the listbox items. And with an easy click on this checkbox, all the items in the listbox will be checked.
If you have any other additional questions about the checkbox feature, please feel free to contact us. Other ListBox Related Features
Apart from the checkbox function, the PerListBox Control also offers other advanced item managing features, like
|
ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control ASP.NET AJAX Grid UI Control ASP.NET AJAX Barcode UI Control ASP.NET AJAX Button UI Control ASP.NET AJAX Calendar UI Control ASP.NET AJAX NavigationBar UI Control ASP.NET AJAX Captcha UI Control ASP.NET AJAX Color Editor UI Control ASP.NET AJAX ComboBox UI Control ASP.NET AJAX DataPager UI Control ASP.NET AJAX Dock UI Control ASP.NET AJAX DropDownList UI Control ASP.NET AJAX DropDownTree UI Control ASP.NET AJAX HtmlEditor UI Control ASP.NET AJAX FileManager UI Control ASP.NET AJAX Filter UI Control ASP.NET AJAX Input UI Control ASP.NET AJAX ListBox UI Control OverviewGetting StartedElementsFeatures ReorderTransferDrag and DropButton ConfigurationCheckBoxes Load On DemandTemplatesData Binding XML DataDataSource DataClient Prpgramming ListBox EventServer Prpgramming ListBox EventASP.NET AJAX ListView UI Control ASP.NET AJAX ToolBar UI Control ASP.NET AJAX TabControl UI Control ASP.NET AJAX Menu UI Control ASP.NET AJAX ToolTip UI Control |