This is a migrated thread and some comments may be shown as answers.

Excel like filtering null values in column cause ArgumentNullException

3 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 14 Dec 2015, 10:36 PM

This was working before, but now when there are null values in a column we cannot use excel like filtering.  I don't think anything changed on our end.  When I click the filter icon in the column header I get this exception:

System.ArgumentNullException was unhandled
  HResult=-2147467261
  Message=Key cannot be null.
Parameter name: key
  ParamName=key
  Source=mscorlib
  StackTrace:
       at System.Collections.Hashtable.ContainsKey(Object key)
       at Telerik.WinControls.UI.RadListFilterDistinctValuesTable.ContainsFilterValue(Object value)
       at Telerik.WinControls.UI.FilterMenuTreeElement.Initialize()
       at Telerik.WinControls.UI.FilterMenuTreeItem.OnLoaded()
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadElement.OnLoad(Boolean recursive)
       at Telerik.WinControls.RadControl.OnLoad(Size desiredSize)
       at Telerik.WinControls.RadControl.LoadElementTree(Size desiredSize)
       at Telerik.WinControls.RadControl.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at Telerik.WinControls.UI.RadPopupControlBase.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

I tried to attached a sample app (in a zip file) which reproduces this problem for us with the latest released version of the grid, but you do not seem to allow zip files to be attached.

3 Answers, 1 is accepted

Sort by
0
Accepted
Andrea
Top achievements
Rank 1
answered on 15 Dec 2015, 10:28 AM

Hi , i have same issue, looks like has been resolved but we have to wait 2016 Q1 or use the 2015.3.930 instead of 2015.3.1140 or use the workaround described here in my case i switched back to 2015.3.930

Best regards

0
Dimitar
Telerik team
answered on 15 Dec 2015, 02:52 PM
Hello John,

Thank you for writing.

This appears to be the issue which Andrea has pointed. You can try the workaround provided there and if it does not work for your case I want to kindly ask you to submit a support ticket where you can attach the sample project that reproduces the issue.

I hope this is useful.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 15 Dec 2015, 03:57 PM
The linked work around seems to fix it for me.  Thank you for your replies
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Andrea
Top achievements
Rank 1
Dimitar
Telerik team
John
Top achievements
Rank 1
Share this question
or