Telerik Forums
UI for WinForms Forum
1 answer
354 views
It would appear that the RadDateTimePicker does not have a ReadOnly property.  I am aware that I can disable the control.  A control that is disabled behaves differently than a control that is set to read only.  The controls appearance is also different.

Is there a way to set the RadDateTimePicker to read only?  if not then is there a work around to disable the control and make it appear as if it were read only?  If not, then may I suggest that is a future version that you add read only functionality.

I find this interesting that the DateTimePicker that ships with VS also lacks a ReadOnly property.
Nikolay
Telerik team
 answered on 21 Apr 2010
1 answer
132 views
Is hierarchal linq supported yet? If so are there any examples on how to do set upt the grid.
Julian Benkov
Telerik team
 answered on 21 Apr 2010
2 answers
177 views

Requirements

RadControls version

2010.1.10.409
.NET version 4.0
Visual Studio version

2010
programming language

C#
browser support

all browsers supported by RadControls


PROJECT DESCRIPTION
I ran into the problem where I needed a column to be read-only after data was entered.  In this case, the Zip Code could not change once it was entered by the user.

        private void rgLocations_CellBeginEdit(object sender, GridViewCellCancelEventArgs e) 
        { 
            if (((GridViewDataColumn)this.rgLocations.CurrentColumn).UniqueName == "Zip Code" && 
                                     this.rgLocations.CurrentRow.Cells["Zip Code"].Value != DBNull.Value) 
            { 
                e.Cancel = true
                RadMessageBox.SetThemeName(this.ThemeName); 
                RadMessageBox.Show("You cannot edit zip codes of an existing Location"); 
            } 
        }  

Chad Hensley
Top achievements
Rank 1
 answered on 21 Apr 2010
3 answers
159 views
I have read the following link and it shows including a relative path for an image.

http://www.telerik.com/help/winforms/tpfhtml-like_text_formatting.html

I tried the same for a link in the RadMessageBox and it does not work.  I am trying to point to a .htm in my project.  If I hard code the path it works fine.







Peter
Telerik team
 answered on 21 Apr 2010
3 answers
315 views
I would like to be able to create an image of a chart created in my application so that i can attach it to an email or save as an image for archiving.  Can I create an image (bitmap,gif,jpeg,etc) object (System.Drawing.Image?) from the RadChart class with a given size or resolution (create an image of the chart scaled to 6"x9")?
Dwight
Telerik team
 answered on 21 Apr 2010
3 answers
249 views
I spent 3 hours trying to figure this out, i am sure it is something silly, but no matter what i try i am still stuck


why the button is not deleting the item in the grid?!!!

see code:

Form1.Designer.vb
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ 
Partial Class Form1 
    Inherits System.Windows.Forms.Form 
 
    'Form overrides dispose to clean up the component list. 
    <System.Diagnostics.DebuggerNonUserCode()> _ 
    Protected Overrides Sub Dispose(ByVal disposing As Boolean
        Try 
            If disposing AndAlso components IsNot Nothing Then 
                components.Dispose() 
            End If 
        Finally 
            MyBase.Dispose(disposing) 
        End Try 
    End Sub 
 
    'Required by the Windows Form Designer 
    Private components As System.ComponentModel.IContainer 
 
    'NOTE: The following procedure is required by the Windows Form Designer 
    'It can be modified using the Windows Form Designer.   
    'Do not modify it using the code editor. 
    <System.Diagnostics.DebuggerStepThrough()> _ 
    Private Sub InitializeComponent() 
        Me.RadGridView1 = New Telerik.WinControls.UI.RadGridView 
        Me.RadButton1 = New Telerik.WinControls.UI.RadButton 
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).BeginInit() 
        CType(Me.RadGridView1.MasterGridViewTemplate, System.ComponentModel.ISupportInitialize).BeginInit() 
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).BeginInit() 
        Me.SuspendLayout() 
        ' 
        'RadGridView1 
        ' 
        Me.RadGridView1.Location = New System.Drawing.Point(0, 0) 
        Me.RadGridView1.Name = "RadGridView1" 
        Me.RadGridView1.Size = New System.Drawing.Size(240, 150) 
        Me.RadGridView1.TabIndex = 0 
        ' 
        'RadButton1 
        ' 
        Me.RadButton1.AllowShowFocusCues = True 
        Me.RadButton1.Location = New System.Drawing.Point(12, 213) 
        Me.RadButton1.Name = "RadButton1" 
        Me.RadButton1.Size = New System.Drawing.Size(75, 23) 
        Me.RadButton1.TabIndex = 1 
        Me.RadButton1.Text = "RadButton1" 
        ' 
        'Form1 
        ' 
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) 
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font 
        Me.ClientSize = New System.Drawing.Size(284, 262) 
        Me.Controls.Add(Me.RadButton1) 
        Me.Controls.Add(Me.RadGridView1) 
        Me.Name = "Form1" 
        Me.Text = "Form1" 
        CType(Me.RadGridView1.MasterGridViewTemplate, System.ComponentModel.ISupportInitialize).EndInit() 
        CType(Me.RadGridView1, System.ComponentModel.ISupportInitialize).EndInit() 
        CType(Me.RadButton1, System.ComponentModel.ISupportInitialize).EndInit() 
        Me.ResumeLayout(False
        Me.PerformLayout() 
 
    End Sub 
    Friend WithEvents RadGridView1 As Telerik.WinControls.UI.RadGridView 
    Friend WithEvents RadButton1 As Telerik.WinControls.UI.RadButton 
End Class 
 


Form1.vb
Imports Telerik.WinControls 
Public Class Form1 
    Private ModuleName As String = "Form1" 
    Private list As New ArrayList() 
 
    Private Sub Form1_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load 
        AddColumns() 
        FillDevelopmentItem() 
    End Sub 
    Private Sub FillDevelopmentItem() 
 
        list.Add(New RGItem(1, False"Development Fees", 1, 0.75D)) 
        list.Add(New RGItem(2, True"15x18", 4, 5.75D)) 
        RadGridView1.DataSource = list 
    End Sub 
    Private Sub AddColumns() 
        Dim xCol As UI.GridViewDataColumn 
        With RadGridView1 
            .MasterGridViewTemplate.AllowAddNewRow = False 
            .DataSource = Nothing 
            .GridElement.BeginUpdate() 
 
            .MasterGridViewTemplate.Columns.Clear() 
            xCol = New UI.GridViewTextBoxColumn("ID""P_DP_Detail_ID"
            xCol.VisibleInColumnChooser = False 
            xCol.IsVisible = False 
            xCol.AllowSort = False 
            xCol.AllowResize = False 
            .MasterGridViewTemplate.Columns.Add(xCol) 
 
            'xCol = New UI.GridViewCommandColumn("Delete", "ShowDel") 
            xCol = New UI.GridViewDataColumn("Delete""ShowDel"
            xCol.VisibleInColumnChooser = False 
            xCol.IsVisible = True 
            xCol.AllowSort = False 
            xCol.AllowResize = False 
            .MasterGridViewTemplate.Columns.Add(xCol) 
 
            xCol = New UI.GridViewTextBoxColumn("Description""MeasureDescription"
            xCol.VisibleInColumnChooser = False 
            xCol.IsVisible = True 
            xCol.AllowSort = False 
            xCol.AllowResize = False 
            .MasterGridViewTemplate.Columns.Add(xCol) 
 
            xCol = New UI.GridViewDecimalColumn("Count""P_DP_Detail_Count"
            xCol.VisibleInColumnChooser = False 
            xCol.IsVisible = True 
            xCol.AllowSort = False 
            xCol.AllowResize = False 
            .MasterGridViewTemplate.Columns.Add(xCol) 
 
            xCol = New UI.GridViewDecimalColumn("Total""TotalAmount"
            xCol.VisibleInColumnChooser = False 
            xCol.IsVisible = True 
            xCol.AllowSort = False 
            xCol.AllowResize = False 
            .MasterGridViewTemplate.Columns.Add(xCol) 
 
            '.Columns(GridCols.enDesc).Width = 220 
            '.Columns(GridCols.enCount).Width = 150 
            '.Columns(GridCols.enTotal).Width = 150 
 
            .GridElement.EndUpdate() 
        End With 
      
    End Sub 
    Private Class RGItem 
        Private _P_DP_Detail_ID As Integer = 0 
        Private _ShowDel As Boolean = True 
        Private _MeasureDescription As String = String.Empty 
        Private _P_DP_Detail_Count As Integer = 1 
        Private _TotalAmount As Decimal = 0D 
        Private _Notes As String = String.Empty 
 
        Public Property P_DP_Detail_ID() As Integer 
            Get 
                Return _P_DP_Detail_ID 
            End Get 
            Set(ByVal value As Integer
                _P_DP_Detail_ID = value 
            End Set 
        End Property 
 
        Public Property ShowDel() As Boolean 
            Get 
                Return _ShowDel 
            End Get 
            Set(ByVal value As Boolean
                _ShowDel = value 
            End Set 
        End Property 
 
        Public Property MeasureDescription() As String 
            Get 
                Return _MeasureDescription 
            End Get 
            Set(ByVal value As String
                _MeasureDescription = value 
            End Set 
        End Property 
 
        Public Property P_DP_Detail_Count() As Integer 
            Get 
                Return _P_DP_Detail_Count 
            End Get 
            Set(ByVal value As Integer
                _P_DP_Detail_Count = value 
            End Set 
        End Property 
 
        Public Property TotalAmount() As Decimal 
            Get 
                Return _TotalAmount 
            End Get 
            Set(ByVal value As Decimal
                _TotalAmount = value 
            End Set 
        End Property 
 
        Public Property Notes() As String 
            Get 
                Return _Notes 
            End Get 
            Set(ByVal value As String
                _Notes = value 
            End Set 
        End Property 
 
        Public Sub New(ByVal iID As IntegerByVal iShowDel As BooleanByVal iMeasureDescription As StringByVal iCount As IntegerByVal iTotal As Decimal
            P_DP_Detail_ID = iID 
            ShowDel = iShowDel 
            MeasureDescription = iMeasureDescription 
            P_DP_Detail_Count = iCount 
            TotalAmount = iTotal 
        End Sub 
    End Class 
 
    Private Sub RadButton1_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles RadButton1.Click 
        RadGridView1.Rows.RemoveAt(0) 
    End Sub 
End Class 
 

Julian Benkov
Telerik team
 answered on 21 Apr 2010
1 answer
165 views
Hello!
I have some problems with RadDropDownButtonElements when using them in the RibbonBar control.
1st - I can´t expand the dropdown list of elements by clicking on the arrow at the design time, only at the run time.
2nd - The "imageList" option doesn´t appear in the  dropDownButton properties windows so I need to add images one by one for each element in my buttondropdown list.
3nd - the "column" where images are supposed to appear in the dropdown list of the DropDownButtonElement is always empty, so there is some kind of an empty tab on the left side of the list and then the image is represented followed by the text.
4th - Alsou can´t align text to left - it is always centered for any option I choose in the property window.

But everything works just fine (all 3 issues) since I'm using RadMenuDropDownButton out of ribbonBar.
Best Regards
Deyan
Telerik team
 answered on 21 Apr 2010
1 answer
140 views
Hello,

I want to ask, if there is a way to change or disable the context menu that is shown when a tab item header is clicked with right mouse button. You can see the menu in the attached image.

Thanks,
Burhan Eyimaya
Nikolay
Telerik team
 answered on 21 Apr 2010
1 answer
170 views

Hello,

I want to ask, if there is a way to change or disable the context menu that is shown when a tab item header is clicked with right mouse button. You can see the menu in the attached image.

Thanks,
Burhan Eyimaya

Nikolay
Telerik team
 answered on 21 Apr 2010
1 answer
490 views
I'm trying to set the focus to the first control on my screen, which is a radio button inside a RadPanel. When I try button.focus() or button.select(), nothing happens. If I set the focus to a text box not inside a panel, it works fine.
Ruth Goldberg
Top achievements
Rank 1
 answered on 21 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?