Telerik Forums
UI for WinForms Forum
7 answers
212 views
Hi,

I am using "Edit UI elements" to style a RadGrid.
As soon as i change anything to do with Header part it breaks my application.

Error details
--------------------------
Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index

On following lines (pageName.Designer.cs) (As soon as i remove these lines, my code works fine.)
-----------------------------------------------------------------------------------------------------------------------------------
((Telerik.WinControls.UI.GridGroupHeaderItem)(this.radGridClinics.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(49)))), ((int)(((byte)(168)))), ((int)(((byte)(101)))));
            ((Telerik.WinControls.UI.GridGroupHeaderItem)(this.radGridClinics.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).HorizontalLineWidth = 0;
            ((Telerik.WinControls.UI.GridGroupHeaderItem)(this.radGridClinics.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));
            ((Telerik.WinControls.UI.GridGroupHeaderItem)(this.radGridClinics.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(1).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(49)))), ((int)(((byte)(168)))), ((int)(((byte)(101)))));
            ((Telerik.WinControls.UI.GridGroupHeaderItem)(this.radGridClinics.GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(0).GetChildAt(1).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(247)))), ((int)(((byte)(240)))));

Does anyone suggest what i am doing wrong here?

Thanks,
Narayan
Nikolay
Telerik team
 answered on 30 Jun 2010
2 answers
236 views
Hello,

Is it possible to add a image for a item of the RadDropDownList ?
 
Kind Regards,

Ramius
Ramius
Top achievements
Rank 1
 answered on 30 Jun 2010
0 answers
160 views
Hi,

I want to add a button or linklabel in radMultiColumnComboBox at specified column of specified row. Basicaly i want to achieve the following functionalities (PFA also):

  •  Replace the second col of fourth row in this dropdown "(Choose)" with a control and open a date selector control on that control's click.
  • Remove only horizontal lines of radMultiColumnComboBox2.EditorControl.
  • Remove space between the EditorControl's (grid inside multicolumn combo) border and combo's border. 

 

I am using telerik controls for windows application.


Thanks in advance,
Ravi
Ravi Kumar
Top achievements
Rank 1
 asked on 30 Jun 2010
1 answer
92 views
Hi,

I have two questions

1) I am after complete application of scheduler working with object datasource. (working with database)
2) Anyone use sql 2000 with scheduler, i am getting error Date datatype is not supported

Regards,
Syed
Dobry Zranchev
Telerik team
 answered on 30 Jun 2010
1 answer
73 views
Hi,

I need to Upgrade Telerik controls for winform from q3 2009 to q1 2010. What is the procedure to upgrade to the new version. Is it free for the exisiting customer? Please let me know.

Thanks,
Munish
Stefan
Telerik team
 answered on 30 Jun 2010
1 answer
325 views
I can't seem to get the RadForm's size grip to show. I am setting SizeGripStyle to Show, which is all is takes when using a regular windows form control. What else do I need to do to get it to show on a RadForm?

FYI - I'm using WinForms 2010 Q1.

Thanks in advance!
John
Deyan
Telerik team
 answered on 30 Jun 2010
1 answer
147 views
Hi!

Im trying to use an alternative GridEditor to input Enter into an Textfield in an RadGridView and found the example above anywhere here in the forum.
The problem is, when I'm clicking in the Editbox to edit the text everything works fine, but when I click on the same or on an other textfield in the grid no cursor is shown and it's not possible to edit the fields as long as i reopen the form.

Please help

regards
Willi

Use:
    Private Sub grdOPdaten2_EditorRequired(ByVal sender As ObjectByVal e As EditorRequiredEventArgs) Handles grdOPdaten2.EditorRequired 
        If e.EditorType Is GetType(RadTextBoxEditor) Then 
            e.EditorType = GetType(MyTextBoxEditor) 
        End If 
    End Sub 

Class:
Public Class MyTextBoxEditor 
    Inherits BaseGridEditor 
    Public Overrides Property Value() As Object 
        Get 
            Dim editorElement As MyTextBoxEditorElement = DirectCast(Me.EditorElement, MyTextBoxEditorElement) 
            Return editorElement.HostedControl.Text 
        End Get 
        Set(ByVal value As Object
            Dim editorElement As MyTextBoxEditorElement = DirectCast(Me.EditorElement, MyTextBoxEditorElement) 
            If value Is Nothing OrElse value Is DBNull.Value Then 
                editorElement.HostedControl.Text = String.Empty 
            Else 
                editorElement.HostedControl.Text = value.ToString() 
            End If 
        End Set 
    End Property 
 
    Public Overrides Sub BeginEdit() 
        MyBase.BeginEdit() 
        Dim editorElement As MyTextBoxEditorElement = DirectCast(Me.EditorElement, MyTextBoxEditorElement) 
        editorElement.HostedControl.BackColor = Color.White 
    End Sub 
 
    Protected Overrides Function CreateEditorElement() As RadElement 
        Return New MyTextBoxEditorElement() 
    End Function 
End Class 
 
Public Class MyTextBoxEditorElement 
    Inherits RadHostItem 
    Public Sub New() 
        MyBase.New(New TextBox()) 
 
        Me.StretchHorizontally = True 
        Me.StretchVertically = True 
        DirectCast(Me.HostedControl, TextBox).AcceptsReturn = True 
        DirectCast(Me.HostedControl, TextBox).AcceptsTab = True 
        DirectCast(Me.HostedControl, TextBox).Multiline = True 
        AddHandler DirectCast(Me.HostedControl, TextBox).KeyDown, AddressOf MyTextBoxEditorElement_KeyDown 
    End Sub 
 
    Private Sub MyTextBoxEditorElement_KeyDown(ByVal sender As ObjectByVal e As KeyEventArgs) 
        If e.KeyCode = Keys.Escape OrElse _ 
        (e.KeyCode = Keys.Enter AndAlso e.Modifiers = Keys.Shift) OrElse _ 
        e.KeyCode = Keys.Tab Then 
            Dim grid As RadGridView = DirectCast(Me.ElementTree.Control, RadGridView) 
            grid.GridBehavior.ProcessKeyDown(New KeyEventArgs(e.KeyCode)) 
        End If 
    End Sub 
End Class 

Alexander
Telerik team
 answered on 30 Jun 2010
1 answer
177 views
Hi!

I'm trying to change the Tab Order in the Telerik RadGridView when using HtmlViewDefinition. Is this possible?
Please see the attached File, Blue is the current order and red is the order i want.

Please help

regards

Willi

Initializing HtmlViewDefinition:
 Dim htmlView As New HtmlViewDefinition 
 
        With htmlView.RowTemplate 
            .Rows.Add(New RowDefinition) 
            .Rows(0).Cells.Add(New CellDefinition("cmbIcpmppCode")) 
            .Rows(0).Cells.Add(New CellDefinition("dtDatum")) 
            .Rows(0).Cells.Add(New CellDefinition("cmbLocal")) 
            .Rows(0).Cells.Add(New CellDefinition("txtZusatz")) 
            .Rows(0).Cells.Add(New CellDefinition("chkHauptleistung")) 
            .Rows(0).Cells.Add(New CellDefinition("grdCmdDelete")) 
 
            .Rows(0).Cells(1).RowSpan = 2 
            .Rows(0).Cells(2).RowSpan = 2 
            .Rows(0).Cells(3).RowSpan = 2 
            .Rows(0).Cells(4).RowSpan = 2 
            .Rows(0).Cells(5).RowSpan = 2 
 
            .Rows.Add(New RowDefinition) 
            .Rows(1).Cells.Add(New CellDefinition("cmbArzt")) 
 
        End With 
        grdOPdaten2.ViewDefinition = htmlView 

Jack
Telerik team
 answered on 30 Jun 2010
2 answers
72 views

Hi,

I added a tab strip with two tab items on the left side. Furthermore I changed the TextOriantation to vertical so that the text appears horizontal on screen. At the end I attached an Image to both tab items. After compiling the application the height of the tab strip changes, both tab items looses their ImagePrimitive settings and the second tab item looses the attached image. 

Regards

Martin

Deyan
Telerik team
 answered on 30 Jun 2010
1 answer
144 views
Hello,
I'm trying to use conditional formatting based on two different columns in a grid.
One is a bool column, based on it i change the row forecolor, the other one is an int and based on it i change the row backcolor. Both are applied to the full row. If i only create the first formatting, it works fine. If i add the second formatting object, the first one does not work anymore. I am only setting RowForeColor on the first formatting object and RowBackColor on the second one. What am i doing wrong? Or are the conditionalFormattingObjects built such that you can only use them on one column at a time on a grid if you apply them to the full row.

Waiting for your response
Jack
Telerik team
 answered on 30 Jun 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
ProgressBar
CheckedDropDownList
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?