Telerik Forums
UI for WinForms Forum
2 answers
255 views

Hello,

I need to change the font of the gridview + header Programmatically.
The gridview rows I can change successively in the cellformating event  

  private void radGridViewProductie_CellFormatting(object sender, CellFormattingEventArgs e)
{
            e.CellElement.Font = Mo.LetterType;
}


The header row i change after binding the gridview.
See the following code

schrapViewBindingSource.DataSource = Schraplijst;
radGridViewProductie.DataSource = schrapViewBindingSource;
radGridViewProductie.MasterGridViewTemplate.BestFitColumns();

GridViewRowInfo Row = this.radGridViewProductie.MasterGridViewInfo.TableHeaderRow;
foreach (GridViewCellInfo gi in Row.Cells)
{
   if (gi.CellElement != null)
   {
       gi.CellElement.Font = Mo.LetterType;
   }
}

This works but the problem is when I comment out the BestFitColumns the Cellelement always returns null

What is the best way to change the font of the header row.?
Wich event can I use for that ?


Greetings Tim
IT Development
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
288 views
I change the forecolor of cell in cell formatting event.When I scroll in the grid the cell becomes normal color as black.How to solve this issue?
Jack
Telerik team
 answered on 24 Jun 2009
1 answer
111 views

Hi

I am getting the below strange warning, because of these error, I can not see the design view.
I am using version 2009.1.9.604.

Warning
Warning 2 No such property registered: NumberOfColors, Telerik.WinControls.UI.LightVisualElement  
(warning @ Me.dtEnd.Checked = True )
Warning 8 No such property registered: BorderBoxStyle, Telerik.WinControls.UI.LightVisualElement
(warning @  Me.RadGridView1.Size = New System.Drawing.Size(690, 242) )

Designer.vb
Me.dtEnd.AutoSize = True
Me.dtEnd.Checked = True       
Me.dtEnd.CustomFormat = "dd/MMM/yyyy"
Me.dtEnd.ForeColor = System.Drawing.Color.Black
Me.dtEnd.Format = System.Windows.Forms.DateTimePickerFormat.[Long]
Me.dtEnd.Location = New System.Drawing.Point(269, 57)
Me.dtEnd.MaxDate = New Date(9998, 12, 31, 0, 0, 0, 0)
Me.dtEnd.MinDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.dtEnd.Name = "dtEnd"
Me.dtEnd.NullDate = New Date(1900, 1, 1, 0, 0, 0, 0)
Me.RadGridView1.RootElement.ForeColor = System.Drawing.Color.Black
 

Me.RadGridView1.ShowNoDataText = False
Me.RadGridView1.Size = New System.Drawing.Size(690, 242)
Me.RadGridView1.TabIndex = 0
Me.RadGridView1.ThemeName = "Telerik"

Regards
raju

Nick
Telerik team
 answered on 24 Jun 2009
1 answer
168 views
It appears that when the position of the context menu is determined it is not taking into account the taskbar location and as a result the last context menu item is being hidden behind the taskbar.
Deyan
Telerik team
 answered on 24 Jun 2009
7 answers
1.2K+ views
Hi,

How can I create a bottom border just for the last row in my grid?  Currently my rows alternate between white and orange and when my grid only displays a few records and the last row is white there is no border between the row bottom and the white background of the grid.  I would prefer a border over changing my row colors.

Thanks,
Jeremy
Jack
Telerik team
 answered on 24 Jun 2009
1 answer
107 views
Hello everyone, I have a problem with a stacked area chart.
I have a 12 Series chart with 5 points in each serie.
I would like to show a tooltip with the point information on mouse over.
I used (as I have done with Pie Chart)

ChartSeriesItem item = new ChartSeriesItem(serie.Value, serie.Definition);
item.ActiveRegion.Tooltip = string.Format("{0} - {1}", serie.Definition, serie.Value);

It seems to work but as I put the mouse just right the first point, the control shows the tooltip for the second point and so on...
during debug I saw that
radchart.series[0].items[0].ActiveRegion
has the correct value.

It also seems that the ActiveRegion for the StackedArea Chart for the point 2 starts from the very left side of point 2 and ends on the very right side of point 1.
In this situation I don't have the StackedArea from the very left of point 1...

Sorry for the bad English...

Thanks in advance.
Gabriele

Dwight
Telerik team
 answered on 24 Jun 2009
1 answer
107 views
Hi,

i have 3 documentPane's. The 1. and the 3. must allways the Height 20 and the 2. Pane must Height 100.

How can i do this?
Julian Benkov
Telerik team
 answered on 24 Jun 2009
1 answer
341 views
I have numerous Telerik Controls in a form, let's say for example a radTextBox. when i run the program, it does not show the right click menu (cut copy paste) ... is this something that i need to define? also, i am not able to select the text in a TextBox by dragging the cursor...

Thanks,
Nick
Telerik team
 answered on 24 Jun 2009
1 answer
1.1K+ views
Hi!

I'm currently creating a gui containing both rad textbox controls and rad combobox controls.

Since the combobox control does not have the same height as the textbox controls, lining them up is hard and makes the application look messy.

If you place them next to each other you will see what i meen :)
The text inside the controls is also not at the same height :(

Why?

Regards
Per Bornsjö
Mike
Telerik team
 answered on 24 Jun 2009
3 answers
277 views
Hi,

I need a different font in a grid data row when the mouse is on the row, and reset the font to default when the mouse moves to another grid row.

How to do it?

I couldn't find it in the UI editor.
Martin Vasilev
Telerik team
 answered on 23 Jun 2009
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?