Telerik Forums
UI for WinForms Forum
1 answer
116 views
I had used a filter in one place in my app and with the latest update it stopped working. So, I looked through the entire solution for WinForms RadControls 2Q2010 and did not see any examples. The one example was commented out without any explanation. This looks like something that could be useful but I need a simple example to get started. Thanks.

-John
Emanuel Varga
Top achievements
Rank 1
 answered on 22 Sep 2010
1 answer
241 views
I have a RadGridView with a GridViewMultiComboBoxColumn in it.  

The GridView that pops up is working properly, and I have the columns I want to display, however, the ValueMember is set to a property that is a Guid type.  The entire column is bound to a Guid value, and the comboboxes are displaying a different value.  So far so good. 

The problem comes when I want to filter the grid by this Guid value.  I get various ParserExceptions, and they differ from Guid to Guid, based on the actual Guid.    One example is the following:

"Missing operator before c0aee operand."  

This is happening on a Guid whose value is 986c0aee-4987-4384-b8e6-551b2fb7a41e.  

I've pasted the stack trace below, and at it's root, it appears to be trying to set an expression that looks like this:

AssetID = 986c0aee-4987-4384-b8e6-551b2fb7a41e

Obviously, the parser is viewing the Guid as an arithmetic expression.  How can I fix this so that it will add the single quote properly?  I've been working on this for a while, and it's driving me nuts. 

I'm adding the columns within the GridView using the following solution: http://www.telerik.com/help/winforms/gridviewmulticomboboxcolumn.html


  Telerik.WinControls.dll!Telerik.Data.Expressions.ExpressionParser.Parse() + 0xe6 bytes
  Telerik.WinControls.dll!Telerik.Data.Expressions.ExpressionParser.Parse(string expression = "AssetID = 986c0aee-4987-4384-b8e6-551b2fb7a41e", bool caseSensitiveLike = false) + 0x14a bytes
  Telerik.WinControls.dll!Telerik.WinControls.Data.RadCollectionView<Telerik.WinControls.UI.GridViewRowInfo>.FilterExpression.set(string value = "AssetID = 986c0aee-4987-4384-b8e6-551b2fb7a41e") + 0x1ca bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewFilterDescriptorCollection.ApplyFilter() + 0x40 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewFilterDescriptorCollection.OnCollectionChanged(Telerik.WinControls.Data.NotifyCollectionChangedEventArgs args = {Telerik.WinControls.Data.NotifyCollectionChangedEventArgs}) + 0x4b bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewFilterDescriptorCollection.Item_PropertyChanged(object sender = {AssetID = 986c0aee-4987-4384-b8e6-551b2fb7a41e}, System.ComponentModel.PropertyChangedEventArgs e = {System.ComponentModel.PropertyChangedEventArgs}) + 0x63 bytes
  Telerik.WinControls.dll!Telerik.WinControls.Data.FilterDescriptor.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs e = {System.ComponentModel.PropertyChangedEventArgs}) + 0x3d bytes
  Telerik.WinControls.dll!Telerik.WinControls.Data.FilterDescriptor.OnPropertyChanged(string propertyName = "Value") + 0x3d bytes
> Telerik.WinControls.dll!Telerik.WinControls.Data.FilterDescriptor.Value.set(object value = {986c0aee-4987-4384-b8e6-551b2fb7a41e}) + 0x4d bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewFilteringRowInfo.this[Telerik.WinControls.UI.GridViewColumn].set(Telerik.WinControls.UI.GridViewColumn column = {Asset (GridViewMultiComboBoxColumn)}, object value = {986c0aee-4987-4384-b8e6-551b2fb7a41e}) + 0x90 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridDataCellElement.Value.set(object value = {986c0aee-4987-4384-b8e6-551b2fb7a41e}) + 0x85 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridFilterCellElement.Editor_ValueChanged(object sender = {Telerik.WinControls.UI.RadMultiColumnComboBoxElement}, System.EventArgs e = {System.EventArgs}) + 0x173 bytes
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.EditorBaseElement.OnValueChanged(System.EventArgs args = {System.EventArgs}) + 0xb9 bytes
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.EditorBaseElement.OnTextChanged(System.EventArgs e = {System.EventArgs}) + 0x48 bytes
  Telerik.WinControls.UI.dll!Telerik.WinControls.UI.BaseComboBoxElement.CallOnTextChanged(System.EventArgs e = {System.EventArgs}) + 0x28 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadMultiColumnComboBoxElement.SetText(string text = "Roll-off Bin 51095-AR") + 0x85 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadMultiColumnComboBoxElement.SyncTextWithItem() + 0x1a4 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadMultiColumnComboBoxElement.OnGrid_CurrentRowChanged(object sender = {Telerik.WinControls.UI.MultiColumnComboGridView}, Telerik.WinControls.UI.CurrentRowChangedEventArgs e = {Telerik.WinControls.UI.CurrentRowChangedEventArgs}) + 0x22 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadGridView.OnCurrentRowChanged(object sender = {Telerik.WinControls.UI.MasterGridViewTemplate}, Telerik.WinControls.UI.CurrentRowChangedEventArgs e = {Telerik.WinControls.UI.CurrentRowChangedEventArgs}) + 0x43 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.EventDispatcher.RaiseEvent<Telerik.WinControls.UI.CurrentRowChangedEventArgs>(object eventKey = {object}, object sender = {Telerik.WinControls.UI.MasterGridViewTemplate}, Telerik.WinControls.UI.CurrentRowChangedEventArgs args = {Telerik.WinControls.UI.CurrentRowChangedEventArgs}) + 0xf4 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.MasterGridViewTemplate.ChangeCurrentRow(Telerik.WinControls.UI.GridViewRowInfo oldRow = null, Telerik.WinControls.UI.GridViewRowInfo row = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewTemplate viewTemplate = {Telerik.WinControls.UI.MasterGridViewTemplate}) + 0x21c bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.MasterGridViewTemplate.SetPositionCore(Telerik.WinControls.UI.GridViewRowInfo newRow = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewColumn newColumn = {AssetNumber (GridViewTextBoxColumn)}, Telerik.WinControls.UI.GridViewRowInfo oldRow = null, Telerik.WinControls.UI.GridViewColumn oldColumn = {AssetName (GridViewTextBoxColumn)}, bool validateRowChange = true) + 0xdc bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.MasterGridViewTemplate.SetPosition(Telerik.WinControls.UI.GridViewRowInfo row = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewColumn column = {AssetNumber (GridViewTextBoxColumn)}, bool validateRowChange = true) + 0x105 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.MasterGridViewTemplate.ProcessCurrentChanged(Telerik.WinControls.UI.GridViewEvent eventData = {Telerik.WinControls.UI.GridViewEvent}) + 0x19a bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.MasterGridViewTemplate.ProcessEventCore(Telerik.WinControls.UI.GridViewEvent eventData = {Telerik.WinControls.UI.GridViewEvent}) + 0x6a bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewTemplate.Telerik.WinControls.UI.IGridViewEventListener.ProcessEvent(Telerik.WinControls.UI.GridViewEvent eventData = {Telerik.WinControls.UI.GridViewEvent}) + 0x28 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(Telerik.WinControls.UI.GridViewEvent gridEvent = {Telerik.WinControls.UI.GridViewEvent}, Telerik.WinControls.UI.PriorityWeakReferenceList list = {Telerik.WinControls.UI.PriorityWeakReferenceList}, Telerik.WinControls.UI.GridEventProcessMode processMode = Process) + 0xe0 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(Telerik.WinControls.UI.GridViewEvent gridEvent = {Telerik.WinControls.UI.GridViewEvent}) + 0x51 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(Telerik.WinControls.UI.GridViewEvent gridEvent = {Telerik.WinControls.UI.GridViewEvent}) + 0x68 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents() + 0x1c8 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(Telerik.WinControls.UI.GridViewEvent gridEvent = {Telerik.WinControls.UI.GridViewEvent}) + 0xbc bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridViewSynchronizationService.RaiseCurrentChanged(Telerik.WinControls.UI.GridViewTemplate template = {Telerik.WinControls.UI.MasterGridViewTemplate}, Telerik.WinControls.UI.GridViewRowInfo row = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewColumn column = {AssetNumber (GridViewTextBoxColumn)}, bool user = true) + 0x149 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.BaseGridNavigator.SelectCore(Telerik.WinControls.UI.GridViewRowInfo row = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewColumn column = {AssetNumber (GridViewTextBoxColumn)}) + 0xa1 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.BaseGridNavigator.Select(Telerik.WinControls.UI.GridViewRowInfo row = {Telerik.WinControls.UI.GridViewDataRowInfo}, Telerik.WinControls.UI.GridViewColumn column = {AssetNumber (GridViewTextBoxColumn)}) + 0x137 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridRowBehavior.SelectPositionOnMouseDownLeft(System.Windows.Forms.MouseEventArgs e = {X = 128 Y = 121 Button = Left}, Telerik.WinControls.UI.GridRowElement rowElement = {Telerik.WinControls.UI.GridDataRowElement}, Telerik.WinControls.UI.GridCellElement cellElement = {Telerik.WinControls.UI.GridDataCellElement}) + 0x20d bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridRowBehavior.OnMouseDownLeft(System.Windows.Forms.MouseEventArgs e = {X = 128 Y = 121 Button = Left}) + 0x35c bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.GridRowBehavior.OnMouseDown(System.Windows.Forms.MouseEventArgs e = {X = 128 Y = 121 Button = Left}) + 0xed bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(System.Windows.Forms.MouseEventArgs e = {X = 128 Y = 121 Button = Left}) + 0xe7 bytes
  Telerik.WinControls.GridView.dll!Telerik.WinControls.UI.RadGridView.OnMouseDown(System.Windows.Forms.MouseEventArgs e = {X = 128 Y = 121 Button = Left}) + 0x45 bytes
  System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseDown(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) Line 12945 C#



Svett
Telerik team
 answered on 22 Sep 2010
1 answer
119 views
Hi Telerik
 I have added Radiobutton in RadGridViewColumn using _CellFormatting
now i want to get its state e.g checked or not how do i do? on cell click or value changes event but i dont know how to detect radio button in column while click. help me please



Kind Regards:

Nikolay
Telerik team
 answered on 22 Sep 2010
6 answers
308 views
Staff,

Put on a Maxdata RadDateTimePicker equal to the current date.
When I navigate with the arrows up the time it hangs at Maxdata, the same does not happen when we put the MinDate.
I would like to have the same procedure of MAXDATA.

One more thing,
when the states Maxdata I wish all dates greater than the MAXDATA stay with a different color to indicate the user that those dates are disabled and the same for MinDate that all dates less than the stipulated MinDate change the color too.

Could anyone help me?

Att,
Marcelo Jesualdo
Emanuel Varga
Top achievements
Rank 1
 answered on 22 Sep 2010
6 answers
185 views
I have put code into my application to remove an item from the carousel.  It removes it, but the item stays in view at the selected item position.  As I scroll around, the item is still there in the background.

rCarFolders.Items.Remove(rCarFolders.SelectedItem)

rCarFolders.Refresh()

Help!

Rafael Poggi
Top achievements
Rank 1
 answered on 21 Sep 2010
3 answers
160 views

Hi, I have been developing a simple application with Telerik in a previous version (i don't know exactly wich it was) But now our company acquired the version 2010 SP1 (v2010.2.10.0806 and I'm experiencing a lot of my problems. The most important is that now i cant access to a cell from a RadGridViewCell by the CellElement propertie. In my code i wrote:

private void gridviewname_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) {

if (e.NewCell != null) {

gridviewname.Rows[e.NewCell.RowInfo.Index].Cells[2].CellElement.Enabled = false;

}

}
 

But the problem is that with the new version i can't disable a cell from a gridview by that way. I need disable the cell in the CurrentCellChanged event, NOT another. I know it's possible to disable a cell in the CellFormatting event by writing "e.CellElement.Enabled = false" but i really need to disable it in CurrentCellChanged event. What can I do? Thank you!

(sorry, i don't speak english well as you already notice xD)

Jack
Telerik team
 answered on 21 Sep 2010
1 answer
122 views
I've noticed that there is an event for items being opened, but not one for appointments being dismissed or for the form closing, etc?
It would make sense that if the items were dismissed, an event would trigger so that the appointment.dismissed property could be persisted to a datasource... is there any current way to handle this or do I need to subclass the reminder dialog?
Dobry Zranchev
Telerik team
 answered on 21 Sep 2010
6 answers
363 views
Hello!

I want a RadScrollablePanel which just have a VerticalScrollBar (which is everytime visible). So the user can only scroll down and there is no ned of a HorizontalScrollBar.

I even tried this code below, but there is no effect (also setting direct on PanelContainer has no effect)

this.radScrollablePanel3.PanelContainer.HorizontalScroll.Enabled = false;
this.radScrollablePanel3.PanelContainer.VerticalScroll.Enabled = true;
this.radScrollablePanel3.PanelContainer.VerticalScroll.Visible = true;

Does someone know what I have to do?
Thanks!
Regards
Juergen
Juergen Holzer
Top achievements
Rank 2
 answered on 21 Sep 2010
11 answers
860 views
Hi
In Nested Grid, we get a '+' sign.   The problem is that '+' sign appears all times, even if there are no child records for that row.

1. Can we enable/disable OR Hide/Unhide '+' sign. depending on if child rows exits.

2. OR alteast we can put some bgcolor indicating to user that this record do have child rows.

Without any indicator user may feel quite annoying to click on '+' sign and nothing happens.

Regards
lee.
Alexander
Telerik team
 answered on 21 Sep 2010
1 answer
181 views
Hi,

I want to hide the hierarchy expanded cell, even when the parent rows have children.

I can hide the image but I cant not hide the column


Thanks,

Felipe
Jack
Telerik team
 answered on 21 Sep 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?