ListBox items with check box
-
Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.
-
Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.
what exactly you want to do.
cheers, sneha
-
Hi, I want to display a list of n(might cross 100) number of items on the page in a ListBox. But just for the convenience of the user, I want each ListBox item with a checkbox. So that the user can easily select multiple items & he doesn't need to keep pressed ctrl key while selecting multiple items. There is a control CheckedListBox,but it is available for Windows forms only,and not in ASP.Net. How can I achieve my requirement?Kindly give some guidance. Thank You.
First of all I want know that Why your trying to do this ? If there is more than 100 Chekbox , How many of them user will select ? So first think about your design !! Now come back to your Solution. If I am not wrong you want some thing This[^](Check Langauge, Platform, Technology.. Section ) . There are multiple approaches to solve this . 1. You can create them at runtime, placed it inside a Div, which should have scroll option. [ Performance overhead is there ] 2. Simple way to use GridView, use Check box Template Field . 3. Create your own custom control.
cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net
-
what exactly you want to do.
cheers, sneha
sneha Choudhary wrote:
what exactly you want to do
He want to do CheckBox List like This[^]
cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net
-
First of all I want know that Why your trying to do this ? If there is more than 100 Chekbox , How many of them user will select ? So first think about your design !! Now come back to your Solution. If I am not wrong you want some thing This[^](Check Langauge, Platform, Technology.. Section ) . There are multiple approaches to solve this . 1. You can create them at runtime, placed it inside a Div, which should have scroll option. [ Performance overhead is there ] 2. Simple way to use GridView, use Check box Template Field . 3. Create your own custom control.
cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net
Hey,thanx for your reply. Well,by default all the items(may be 5-100) will be selected. But,just wanted to allow the user to disselect any item,if he wants to. Otherwise there is no compulsion of having such design. Anyways,thanx for those suggestions .I'll try to get the desired output using them.