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

Filtering problem (Comma Character in GridFiltering )

5 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kamran Hussain
Top achievements
Rank 1
Kamran Hussain asked on 29 Jun 2010, 01:16 PM


I Have a Column in RadGRidView Control for Windows having data type (Values) in Decimal and its format  String is {0:N}.
When I type any Special Character in the Filter Text box , Application Goes Crash immediately.
How i Can Catch its Events or Avoid this Situation.



5 Answers, 1 is accepted

Sort by
0
Naama
Top achievements
Rank 1
answered on 27 Apr 2011, 02:16 PM
I have the same problem, but I notice that it is not depend on the column type, the exception occurs also in textbox column or even when changing the FilterDescriptor property programatically.

the stack trace for the exception is:
   at Telerik.Data.Expressions.DataStorageHelper.EscapeLikeValue(String valueWithoutWildcards)
   at Telerik.WinControls.Data.FilterDescriptor.GetExpression(FilterDescriptor filterDescriptor)
   at Telerik.WinControls.UI.GridViewFilterDescriptorCollection.get_Expression()
   at Telerik.WinControls.UI.GridViewFilterDescriptorCollection.ApplyFilter()
   at Telerik.WinControls.UI.GridViewFilterDescriptorCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at Telerik.WinControls.UI.GridViewFilterDescriptorCollection.Item_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   at Telerik.WinControls.Data.FilterDescriptor.OnPropertyChanged(PropertyChangedEventArgs e)
   at Telerik.WinControls.Data.FilterDescriptor.set_Value(Object value)
   at Telerik.WinControls.UI.GridViewFilteringRowInfo.set_Item(GridViewColumn column, Object value)
   at Telerik.WinControls.UI.GridDataCellElement.set_Value(Object value)
   at Telerik.WinControls.UI.GridFilterCellElement.set_Value(Object value)
   at Telerik.WinControls.UI.GridFilterCellElement.Editor_ValueChanged(Object sender, EventArgs e)
   at Telerik.WinControls.UI.BaseInputEditor.OnValueChanged()
   at Telerik.WinControls.UI.BaseGridEditor.OnValueChanged()
   at Telerik.WinControls.UI.RadTextBoxEditor.TextBoxItem_TextChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Telerik.WinControls.RadItem.OnTextChanged(EventArgs e)
   at Telerik.WinControls.RadHostItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.RadTextBoxItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
   at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
   at Telerik.WinControls.RadObject.SetValue(RadProperty property, Object value)
   at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_TextChanged(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
   at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
   at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(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)
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at WindowsFormsApplication1.Program.Main()
0
Richard Slade
Top achievements
Rank 2
answered on 27 Apr 2011, 02:55 PM
Hello,

Please can you confirm which version of the controls you are using? From memory, there used to be an issue here, but it is fixed to my knowledge in the latest version of RadControls for WinForms.

Look forward to hearing back from you
Richard
0
Naama
Top achievements
Rank 1
answered on 28 Apr 2011, 07:21 AM
Hello,
I'm using Telerik.WinControls version 2011.1.11.315.
Thanks,
0
Richard Slade
Top achievements
Rank 2
answered on 28 Apr 2011, 09:15 AM
Hello,

Unless I have misunderstood your issue, I haven't been able to replicate this. Please could you provide a sample using the Format Code block to demonstrate the issue please.
Thanks
Richard
0
Accepted
Naama
Top achievements
Rank 1
answered on 28 Apr 2011, 09:38 AM
Hello,
I Installed the newer version of Telerik.WinControls, and now the problem was resolved,
Thanks for your help.
Tags
GridView
Asked by
Kamran Hussain
Top achievements
Rank 1
Answers by
Naama
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Share this question
or