I have Grouping in my Grid and therefore have the little +/- buttons for expanding the groups.
I want to create an Expand/Collapse ALL button. I know how to do this with a regular button outside of the Grid. My questions is, can I put this button INSIDE the Grid?
So maybe like an extra row at the top that holds it or at the far left of the columns. OR even better inside the first column somewhere?
The closest I found to this was on CreationFilters. Would that be the only way to get the button I'm looking for?
Thanks
Hi Caleb,
Using a CreationFilter is the best way to achieve this. You can refer to the attached sample on how to implement this CreationFilter for displaying an Expand/Collapse All button for the grouped columns in a Grid.
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Ah yes perfect!
But one last issue. I've tried changing it to a ButtonUIElement rather than a ImageAndTextButtonUIElement because I don't need the image. And now the overridden ButtonClick method is never being called.
I don't understand why since they both stem from ButtonUIElementBase....
Any ideas why it randomly stopped being called?
I'm not exactly sure why that is, but you could just use OnClick, instead (and don't bother returning a value).