Mike,
I am using Infragistics 10.1. I am facing an issue in the Ultrawingrid while using Summary dialog. When i apply "Count" for decimal column, it show the count in the bottom. After that if i remove the count and apply "Sum" and "Average" i got an error "Invalid reference //ugBalanceSheet/Band 0/(). Empty element encountered at location 24.". For your reference i attached a sample project with this post.
Steps to reproduce the error:
a) Run the application
b) Click the "Summary" at the column header "Balance".
c) Select "Count" in the summary dialog
d) Click "OK" to close. (the count "Count = 10" will display below)
e) Once again click the summary at the column header "balance"
f) Select "Average" & "Sum" in the summary dialog.
g) Click "Ok" to apply.
Now the application will close and you will get the above mentioned error "[UltraCalcException : Invalid reference //ugBalanceSheet/Band 0/(). Empty element encountered at location 24."
Guide us to solve this issue.
Hello,
I have logged this as a development issue with an ID# of 94866. I will make another post on this thread when the issue has been resolved. Please note that the issue will only be resolved for NetAdvantage 2010 Volume 3 and later since the older versions are no longer being maintained.
This does appear to be a critical bug occurring in 11.1 and previous releases. While the engineers work out a fix for supported releases, here's a possible work around.
Private Sub ugBalanceSheet_BeforeSummaryDialog(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.BeforeSummaryDialogEventArgs) Handles ugBalanceSheet.BeforeSummaryDialog Dim hasSummary As Boolean = True While hasSummary = True hasSummary = False For Each summary As SummarySettings In e.Column.Band.Summaries If summary.SourceColumn Is e.Column Then hasSummary = True e.Column.Band.Summaries.Remove(summary) End If Next End While End Sub
The work around uses the BeforeSummaryDialog event of the WinGrid to clear the summaries for that column before the dialog displays. The only negative side effect of using this work around is that the current column summaries will be removed each time the dialog is displayed, but on the flip side it prevents the bug from triggering.
I missed one step in my previous post. Between Step "e" & "f" there is one more step.
(e.1) Remove the "Count" from summary dialog
I checked this scenario in Infragistics V11.1. I got the same issue in Infragistics v11.1 also.
Guide me to solve this issue.
Thanks for your reply. Now i am using Infragistics v10.1. I didnt have any latest release. I will check this in latest release and update you the status.
Thanks for your reply. I am using Infragistics vol 10.1. I didnt update any service release. I will update you after checking this in the latest service release.