Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
selecting and copying summary values
posted

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.

Parents
  • 469350
    Offline posted

    Hi,

    bbdt_travis said:
    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?

    Yes, I beleive that is correct. Implement ISelectableObject would not do you much good unless the SelectionStrategy was updated to know how to deal with those objects. This is probably possible, theoretically, but it would not be trivial to do and unless you have access to the Infragistics source code for the exist SelectionStrategies to use a guide, it would be nearly impossible.Even with the source code, it will probably be very complex and I would not recommend it, especially if you do not have a lot of time.

    If I were going to implement this, I'd probably do it manually rather than using the SelectionStrategy approach. But even then, it's not going to be a trivial task.

    It might be easier if I knew what kind of assumptions you can make here. What exactly are the requirements?

    For example:

    • Do users need to be able to select summary rows?
    • Do users need to be able to select summary cells?
    • Does a user need the ability to select a summary row/cell and also normal data rows/cells at the same time?
    • Are you using OutlookGroupBy and if so, how does the selection of GroupByRows work with selection of summaries?
    • Is the data in the grid hierarchial so that there are multiple summary rows, or is the data flat with a single group of summaries? 

    In the simplest cases with a flat grid and no OutlookGroupBy, and where users need to be able to select a summary cell (or multiple summary cells) or the entire summary row at once, the implementation would be pretty easy.

    In a complicated case with multiple levels of hierarchical data and OutlookGroupBy where you need to select Summary cells/rows in addition to data rows/cells, it will be much more complicated and difficult.

Reply Children