Hello,
My application will be making use of a lot of XamDataGrids. One of them requires a very specific custom calculator, which I've implemented and have working. However, this calculator applies ONLY to this one grid. I don't want it to be available to any other grids in the application. All the documentation I can find, however, says that I must register my calculator "statically", making it available to the entire app.
How do I ensure that the calculator is available only to the grid that needs it?
Thanks,
Bob
Hello Bob,
We are currently working on this problem with the QA team. When you register a SummaryCalculator it is for all the grids in the application. What I have thought as a workaround was to register and unregister the calculator depending on the sender ( in the SummarySelectionControlOpening event ) but here comes another problem - the SummarySelectionControlClosed event is fired immediately after the SummarySelectionControlOpening, which is not a correct behavior. Stay posted on this topic for follow-up. You can also contact Developer Support.
Alex.
Hello again Bob,
Well,
We established that when you register a calculator it is for all the grids in the application and the lack of SummarySelectionOpened event is a obstacle for a nice workaround to your problem. You can Register and UnRegister the CustomCalculator in the SummarySelectionControlOpening and SummarySelectionControlClosed events, but it will not have the desired effect ( at least to some extent ). You can submit a request for adding a SummarySelectionControlOpened event and/or Registering a calculator only to a particular element (XamDataGrid), which I personally think it is helpful in this scenario.