Telerik Forums
UI for WinForms Forum
1 answer
192 views
Hello,

I have a radDataGrid and the source is a List<customerClass>, where curstomer class have nullable fields ( DateTime? and int? ).
When i want to set the filter in the filterRow on such a column I get the following exception.

How can I make the filter working on such columns?

Regards
Roland



System.InvalidCastException wurde nicht behandelt.

Message=

"Ungltige Umwandlung von \"System.DateTime\" in \"System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]\"."

 

Source=

"mscorlib"

 

StackTrace:

bei System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)

bei System.DateTime.System.IConvertible.ToType(Type type, IFormatProvider provider)

bei System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)

bei Telerik.WinControls.UI.GridFilterCellElement.SetFilterValue(Object value)

bei Telerik.WinControls.UI.GridFilterCellElement.set_Value(Object value)

bei Telerik.WinControls.UI.RadGridView.UpdateFiltering()

Martin Vasilev
Telerik team
 answered on 09 Apr 2010
1 answer
263 views

What I am trying to do is to change the style/coloring of a RadMenuItem.  I want the left side of the menu to have a different coloring style then of the whole RadMenuItem, left section meaning the section that contains the icons/images of the menu item.


When I set the  below properties it changes the whole item.

        CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor = System.Drawing.Color.FromArgb(CType(CType(215, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))

        CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor2 = System.Drawing.Color.FromArgb(CType(CType(132, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(78, Byte), Integer))

        CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor3 = System.Drawing.Color.FromArgb(CType(CType(63, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(10, Byte), Integer))

        CType(MenuControl.GetChildAt(0), Telerik.WinControls.Primitives.FillPrimitive).BackColor4 = System.Drawing.Color.FromArgb(CType(CType(78, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))

 

Thanks in advance for your help.

Nikolay
Telerik team
 answered on 09 Apr 2010
11 answers
638 views
hi Guys,

Sorry i m quite new to the Telerik RadControls.
I have a terrible issue with the autosize property of the RadGridview for winforms.

I set my AutoSizeRows to True at design time and autosize columns mode = none.

then in  my code..
MYGridView.DataSource = dataSet.Tables[0].DefaultView;
MYGridView.Columns["Comments"].MaxWidth = 500;
MYGridView.Columns["Comments"].WrapText = true;
    foreach (Telerik.WinControls.UI.GridViewDataColumn item in MYGridView.Columns)
                    {
                        item.BestFit();
                    }
And after this. i when i look at my girdview its autosized its contents to the size of of the font in the cells. which is very very ugly.
i want to set a minHeight for the columns but i am unable to do so.. please help...

i have tried what is discussed in these threads but of now use.

http://www.telerik.com/community/forums/winforms/gridview/wraptext-and-autosizerows-true.aspx
http://www.telerik.com/community/forums/winforms/gridview/wrapping-text-in-cell.aspx

Please give me your valuable suggestions.

Thanks in advance.



Svett
Telerik team
 answered on 09 Apr 2010
0 answers
153 views
...
Mike Baldini
Top achievements
Rank 2
 asked on 08 Apr 2010
8 answers
369 views
hi
i am using telerik rad control winforms q1 2010 with visual studio 2005, when i am run the telerik visual style builder it display an error message "Telerik.VisualStyleBuilder has encountered a problem and needs to close. we are sorry for the inconvenience.
what is the reason for display the error message?
plz help me, its very urgent

jack jai
Top achievements
Rank 1
 answered on 08 Apr 2010
1 answer
126 views
Dear Telerik users

Is it possible to get rid of the thick frame displaying around every sub-hierarchy that is expanded?

For my purpose it would be more visually appealing if the frame would only be 1px in width.

Thank you

Markus
Svett
Telerik team
 answered on 08 Apr 2010
1 answer
72 views
Instructions on :
http://www.telerik.com/help/winforms/ui_radsplitbuttonitems.html

Explain how to set the DefaultItem property via code, but this property does not seem to be able to be set via the designer.

Is this intentional?
Martin Vasilev
Telerik team
 answered on 08 Apr 2010
4 answers
237 views
Hi

I want to give a datatable datasource for the radcarousel  ,

I need that the carousel RadbuttonElements will be dinamic

i'm familiar with the manual way ( one by one) , I want to know the way to declare once the DataSource ( radcarousel1.datasource=datatable) without the enumeration ( for each) 

pls help me, its urgent!!!
thank you.
Peter
Telerik team
 answered on 08 Apr 2010
1 answer
108 views
hi
I Add for example 20 items in Carousel but at runtime shows only 10 items.
what Should I Do?
Thanks Alot.
Peter
Telerik team
 answered on 08 Apr 2010
3 answers
455 views
In row validating event I check some values and if is a wrong value I wrote

e.Row.ErrorText = string.empty
if my condition .is not OK
    e.Row.ErrorText = "BlaBla"
    e.Cancel = true
end if

All very nice but after i validate and  this new row is inserted in datagrid , I still have the red error sign besides of the "Click here to add new row" .

What I'm doing wrong ?

Mihai



Martin Vasilev
Telerik team
 answered on 08 Apr 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)
Form
Chart (obsolete as of Q1 2013)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?