I would like to add a button with a creation filter to the caption area of a grid group, but I can't seem to find the proper UIElement to hook into. Can anybody help me?
I figured out that I have to get the context of the header and see if it is a group header, so now my button is only being added to the group, which is good. However, I need to find a way to prevent drawing the button when the grid scrolls and the group is not visible on the screen. For example, I have two groups and the first one is fixed. When I scroll to the right, the new button keeps painting even though the group is no longer visible on the screen.
Hi,
It's impossible for me to guess what's happening without seeing your code so I know what you are doing. If you are using a CreationFilter, then the filter itself will only fire for an element that actually exists, so if your button it showing up when the header does not exist, then I don't really know what your code is doing that would case that.
BTW... it might help you to get the Infragistics UIElementViewer Utility. This utility will allow you to see the UIElements in the grid.
No. If my first grid group is fixed and my second grid group is not, when I scroll to the right on the non-fixed group, the button bleeds through the fixed group.
Richard,
Will you be able to send us your code so that we can see what's going on?
It is part of an enormous project and I don't think you want the whole thing. I am under some serious time constraints and don't have time to create a stand-alone project. I've added a button in the caption area of the grid instead and have given up trying to make it work in the groups. I was hoping one of your guys would have an idea right off the top of his head, but it sounds like that's not the case.
I have attached a sample application which uses a CreationFilter to add a button to a GroupHeader. You will see that when the GroupHeader is scrolled off the screen the button is not being repainted. I hope this will help you to find what is going wrong in your own application. I think the important thing is to add the button to the ChildElements collection of the Header. Anyway, look it over and let me know if you have questions.
Was that sample helpful?