Forum  Commercial Foru...  Commercial Foru...  CheckListBox: Header to select All Items
Previous Previous
 
Next Next
New Post 12/27/2011 2:17 AM
  aves
28 posts
No Ranking


CheckListBox: Header to select All Items 

Hello,

I want to make the first item in the CheckedListBox, let say a Header. When I check/uncheck this Header, all other items will be checked/unchecked following the Header and the checked state of Header also depends on checked state of other items. I tried to make it but it does not work, when I check or uncheck Header nothing changes. Could you please help me out?

Thank you very much for your help.

Aves 

PS: I already send a sample project to your support email.

 
New Post 12/27/2011 5:18 AM
  palli
14339 posts
1st Level Poster




Re: CheckListBox: Header to select All Items 

Hi aves,

Thanks for the sample application.

It seems to me that your logic is a little wrong, and as I am not sure how you want the control to behave when there is a mixture of checked and unchecked items in the list, I'll just point you to the first failure in your logic.

If you modify the SetCheckHeader() method and move the return statement so that it's within the innermost if statement, then you should have some more "reaction" within the control.

Setting a breakpoint on that method should help you see the failure in the logic.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/29/2011 1:39 AM
  aves
28 posts
No Ranking


Re: CheckListBox: Header to select All Items 

Hi Palli,

I tried moving return statement and something changed, but it is still not that I want.

What i want to do is: Header is checked if all other items are checked and header is unchecked if at least one item is unchecked. Header is using for fast check/uncheck all items.

It seems to me from the original code, when I checked Header, all other items are checked and after that some of them call unchecked and nothing changes.

Aves

 
New Post 12/29/2011 12:27 PM
  palli
14339 posts
1st Level Poster




Re: CheckListBox: Header to select All Items 

Hi Aves,

I believe you are right on this one, that there is a problem with the CheckedListBox.ItemCheck event firing, which is causing your problems. I opened a new tracker entry on the subject. Please view it here and follow up on our progress.

Thanks for the report and sorry I didn't spot the problem right away.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/4/2012 7:29 AM
  aves
28 posts
No Ranking


Re: CheckListBox: Header to select All Items 

Hi Palli,

I moved Header outside CheckedListBox ( using normal CheckBox) and everything worked. Btw CheckedListBox is slowly when debug in VisualStudio, but in IIS it is much more better.

Thanks again for your help.

Aves

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  CheckListBox: Header to select All Items
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS