Telerik Forums
UI for WinForms Forum
1 answer
136 views
Hi to all Telerik fans and its experts:
i try change column font with use "Element hierarchy editor".
it is done but just in Design mode and after Running project eccur an exeption in designer code.
Please notice following code block from my designer code:
// Error Line-->((Telerik.WinControls.UI.GridHeaderCellElement)(this.raGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsCurrent = false;//<-- Error Line
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsCurrentColumn = false;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsSorted = true;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).IsPinned = false;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Image = null;
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Text = "??? ? ??? ????????";
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
((Telerik.WinControls.UI.GridHeaderCellElement)(this.radGridView1.GetChildAt(0).GetChildAt(1).GetChildAt(0).GetChildAt(1))).Padding = new System.Windows.Forms.Padding(0, 0, 16, 0);

Exception Message:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index


i cut this code block  and past it in the Form Load Event and this problem was solved And this is not that interesting for me.

But why?
Whether the telerik GridView control has an Bug?
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
15 answers
324 views
Hello,
I'd like to use an & in one of my menu items, but can't as UseMnemonic doesn't seem to be accessable. I have tried setting a TextPrimitive first and serting the text of the menu item to that, but that doesn't seem to work. I can't use && as this cuts off some of the text. How can I use UseMnemonic in the text property of a MenuItem?

Thanks
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
2 answers
154 views
Hi,
        We are using SummeryRowBottom in grid view and we have set AddNewRow Position to Bottom , Now the AddNewRow Position is coming below the SummeryRow, But we want it above the Summery Row , means at last Row of grid..
When we add the row then the new row added moves to the last row of grid i.e above the summery row..
Stefan
Telerik team
 answered on 19 Jan 2011
5 answers
324 views
HI

let me know, how to check RadGridViews perticular cells text is Empty or not
instead of cells value...?

Thanks...
Richard Slade
Top achievements
Rank 2
 answered on 19 Jan 2011
7 answers
1.4K+ views
Hi,
 I would like to set the default themes provided by telerik during the run time. Can I set the themes without dropping the theme controls and generate it during the run time?
Thanks
Stefan
Telerik team
 answered on 19 Jan 2011
9 answers
528 views
Hi I'm using Q3-2010 and I have installed the latest Service pack released yesterday and it has made no difference.

The problem I have is when I bind to the "SelectedIndex" property of the DropDownList. It works fine with other properties like "Text" but not with selectedindex.

Any suggestions please ?

Regards


Paul.
Peter
Telerik team
 answered on 19 Jan 2011
7 answers
269 views
HI,

There is any way to adjust Dropdownheight Property of the GridViewComboBoxColumn
of RadGridView...?

Thanks,
Somnath
Top achievements
Rank 1
 answered on 19 Jan 2011
5 answers
433 views
Like the ASP.NET version of this control, is this feature supported?
Jack
Telerik team
 answered on 19 Jan 2011
3 answers
251 views
I've got a basic context menu working on a RadGrid, but I want to include a 3rd context menu (with the arrow character >) that nestes and has a bunch of other menu items on its own menu panel. Would that need to be a combo box item?

What I have working so far is this (pretty basic context menu):

Dim contextMenu_Active As New RadContextMenu
  
Dim menuItem1 = New RadMenuItem("Stop")
menuItem1.ForeColor = Color.Red
AddHandler menuItem1.Click, AddressOf menuItem1_Click
Dim menuItem2 As New RadMenuItem("Remove")
AddHandler menuItem2.Click, AddressOf menuItem2_Click
contextMenu_Active.Items.Add(menuItem1)
contextMenu_Active.Items.Add(menuItem2)
  
Private Sub RadGridView_Active_ContextMenuOpening(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles RadGridView_Active.ContextMenuOpening
        If TypeOf Me.RadGridView_Active.CurrentRow Is GridViewDataRowInfo Then
            e.ContextMenu = contextMenu_Active.DropDown
        End If
    End Sub
  
Private Sub menuItem1_Click(ByVal sender As Object, ByVal e As EventArgs)
        Dim index As Integer = Me.RadGridView_Active.Rows.IndexOf(TryCast(Me.RadGridView_Active.CurrentRow, GridViewDataRowInfo))
        If index >= 0 Then
            Dim strGUID = Me.RadGridView_Active.Rows(index).Cells(0).Value
            Try
                ccJob.JobStop(strGUID)
            Catch ex As Exception
  
            End Try
        End If
    End Sub
    Private Sub menuItem2_Click(ByVal sender As Object, ByVal e As EventArgs)
        'TODO
    End Sub
Richard Slade
Top achievements
Rank 2
 answered on 18 Jan 2011
1 answer
169 views

1. When I render a chart on the screen I simply want to display the chart title at top left, such as:
(Chart Title)

2. However, when that chart is printed, (using RadChart.Printing.PrintChart()), I want the date printed as well, but right justified, and not as impacting, such as a smaller font or italic, such as this:

(Chart Title)                                                        Date Printed: 1/13/2011



Is this possible? I figure I could simply add the date printed part to the chart title text when a user prints a chart, and then remove it when printing is completed.  However, that doesn't resolve the issues of a different font and right justification.

Can a chart have multiple titles, like a ChartMainTitle and ChartSubTitle?  I think that would be the best solution, cause of course each could then be set up completely independently of each other to satisfy all user requests.  If this isn't possible, could the feature be added to a future version?

Thanks much,
Dan

 

 

 

 

Evgenia
Telerik team
 answered on 18 Jan 2011
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?