Posted 28 Mar 2011
Link to this post
I seem to have a problem with filterdescriptors, the issue is this:
I want to add two filters for a QDSCV, which will filter the creationdate of the records of type DateTime, have 1 set to GreaterThan the first day of the month and 1 set to LessThan the last day of the month. At this moment I only have records for the current month. When i filter for other months than the current one, nothing is displayed which is what i expect, but when i want to filter for the current month i get the following error:
Message: Unhandled Error in Silverlight Application
Message: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Telerik.Windows.Controls.GridView.IndexTree.Set(Int32 index, Double value)
at Telerik.Windows.Controls.GridView.IndexTree.set_Item(Int32 index, Double value)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
The filterdescriptors value are set from a combo box and i checked in debug mode to see if the values are correct and they are. Further more, when it loads for the first time it loads correctly, only after i choose a different month and then go back to the current one it happens.
Edit: Found the problem, but don't know how to resolve it. If i leave the filter which checks IsGreaterThanOrEqualTo, it works fine. If I leave the other, IsLessThanOrEqualTo it fails with the above error. Will keep posting if I have more news.