Working from this example, I am getting close to getting a FieldChooser how i want. I have two problems still.
1) The SelectAll checkbox doesn't respect if the user checks or unchecks individual items, and i am unsure of how to handle events for them to do this
2) The Field Chooser then doesn't fit all the Fields in it and doesn't scroll to show them either, even though the original thread example says it does.
http://es.infragistics.com/community/forums/t/80639.aspx
Attached my sample...
...also, i have some applications that have MANY fields, and it takes a while for the grid to render after de-selecting or selecting all fields. is there any way i can use my WaitCursor while the grid is rendering to let the user know something is happening? Biggest issue is the Select All checkbox needs to change state if an individual field is selected or de-selected though.
anyone? i still need to handle events to make the SelectAll checkbox respect individual checkbox selection in the field chooser...
Hello Travis,
Thank for your post.
I have been looking into your requirements. What I can suggest to achieve the SelectedAll Checkbox to respect if the user checked or unchecked individual field is to set the IsChecked property of Checkbox to x:Null, so you allow it to be set to null and determinated it between true and false. You can handle the ValueChanged event of XamCheckEditor. In the event handler you can use the Utilities class to get the SelectAll Checkbox and set it`s IsChecked property to null. Also you should set the IsThreeState property of select all Checkbox to false. About the issue with fitting of fields, I can suggest you to put ScrollViewer in your template. I modified your sample application to show you how you can achieve this custom functionalities.
Please let me know if you need any further assistance on this matter.
huh. this didn't work correctly for me, but i did notice you had
e.FieldChooser.FieldGroupSelectorVisibility = Visibility.Visible;
in your code, and that the "Person" checkbox was working exactly as i wanted anyway, so i customized that to be my Select All instead.
Thank you for your reply.