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
220
Display Validation Error Icon in Summary Rows
posted

Hi all,

 This has been nagging me for awhile now.  I have a ultrawingrid (Infragistics 6.2) which has the following columns:

- Territory
- AccountName
- PercentageContributionForBrandA
- PercentageContributionForBrandB

I'm grouping on the Territory column.  Within the Territory column, I have a summary value for each of the percentage contribution.  The goal is to have the summary value to equal 100% for each of the percentage contribution.  If it's over or under, I want to display an error icon next to the summary value.  Any ideas on how I can acheive this?

Thanks in advance.

Assad

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Assad,

    I beleive you can acheive what you want by creating an ICustomSummaryCalculator. This will allow you to calculate and control the summaries yourself. 

    Just ignore that first part, I think I misunderstood your question. I thought you were asking how to calculate the summary, but it seems like that's the easy part and you are asking how to display an icon in the summary based on the Value. 

    Unfortunately, SummaryValues don't support images on the Appearance.

    One thing you could do is use a BackColor/ForeColor instead of an image. Maybe show the invalid summaries in red? 

    Another option would be to insert the image yourself using a CreationFilter.  This is a much more complicated option, but if you really must have an image in the summary, it's the only way I can see to do it. If you are not familiar with CreationFilters, check out the Infragistics Knowledge Base for articles and sample filters. Also, get the Infragistics UIElementViewer Utility - it will be a big help in working with UIElements. If you get stuck, let me know and I will try to point you in the right direction. 

Children