We have a grid where our customers are requesting that they need to be able to select and copy out the summary values of the grid (along with cell values). We understand that this is not possible with the current version (we are using 10.3).
We have been working on some workarounds for this. The first is to use mouse/keyboard events to handle selecting logic ourselves. We have it almost working, but the code is very sluggish and buggy. We would rather not go this route if there is a better solution.
The second, which we have not played with, has to do with the ISelectableItem and the Selection Strategy methodology. I was reading the information in the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/Win_Selection_Strategies.html
From what I understand, we cannot just create a new class that inherits from SummaryValue and ISelectableItem and use these on the grid to have them able to be selected. We must implement a custom ISelectionManager that deals with selecting the next item, etc. Am I correct in this assumption?
Do you think it would be more worthwhile for us to use the Selection Strategy methodology? Do you have any examples of using this methodology on a wingrid so that we can select the summary values? We do not have a lot of time to spend on this, so if it is too much work to implement this, then we probably won't go this route.
Any suggestions or help on this would be appreciated (from anyone).
Also, do you ever plan to add this to the base functionality of the wingrid? We have submitted this request in the past but it hasn't been implemented yet.
Hi,
A solution to copy summary values is :-
1. Give context menu on grid having copy option
2. Handle mouse down event on the grid and check for right click, if action is 'Copy', then get element which is being clicked and find out text of the clicked element, then set it to clipboard. Refer below code:-
UIElement objClickedElement = ultraGrid.DisplayLayout.UIElement.ElementFromPoint(new Point(mouseEventArgs.X, mouseEventArgs.Y));
gridSummaryText = ((TextUIElement)objClickedElement).Text;
Clipboard.SetText(gridSummaryText);
Thanks
Hi Sonam,
You can't trap for clicks on the checkbox - the grid doesn't create the summary when you click the checkbox, anyway. The summary isn't created until you close that dialog. So you could trap the AfterSummaryDialog event of the grid, and make any adjustments you needed.
Thanks for raising this as a new product idea.
Please let me know if it is possible to hide summary values row (Sigma symbol still visible) and we can handle 'Summary Value Changed' event on click of 'Sum' checkbox under 'Sigma' button to show a information in either a messagebox or an extra row added at runtime in existing grid.
Thanks,
Sonam Rastogi
Hello Sonam,
After some research, the "Ability to select and copy summary values" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12090055.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Hi Mike,
Has this functionality been included in Infragistics version now?
I am looking for a simpler solution to copy summary values.