Excel like filtering null values in column cause ArgumentNullException

4 posts, 1 answers
  1. John
    John avatar
    14 posts
    Member since:
    Feb 2012

    Posted 14 Dec 2015 Link to this post

    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.

  2. Answer
    Andrea
    Andrea avatar
    52 posts
    Member since:
    Oct 2012

    Posted 15 Dec 2015 in reply to John Link to this post

    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

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1411 posts

    Posted 15 Dec 2015 Link to this post

    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
  5. John
    John avatar
    14 posts
    Member since:
    Feb 2012

    Posted 15 Dec 2015 in reply to Andrea Link to this post

    The linked work around seems to fix it for me.  Thank you for your replies
Back to Top