Telerik Forums
UI for WinForms Forum
5 answers
205 views

Hello Team Telerik,

I want to ask how can I have a 3D chart. How can I do this?

Is there a property which set the chart in a 3D mode?

Another Problem I have is that I cant add a radLabel to a radGroupBox programatically.

Thanks very much

Kind regards,

Alfonsina

Stefan
Telerik team
 answered on 26 Jan 2016
1 answer
139 views

Hi All.

I am working with Telerik 2012 Q1. I have used a RadDataGridView. I am facing a problem here.

When i am trying to navigate from one cell to another cell, by using Tab Key.  It is not working. But It is navigating using arrow Key.

Please help me, what i am missing here .

I need an immediate help.

 

Thanks

Neel

 

Hristo
Telerik team
 answered on 25 Jan 2016
4 answers
290 views

How to enable only one appointment per time slot in windows form scheduler NOT WEB OR WPF?

Thanks in advance
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jan 2016
7 answers
165 views

Hi I am wraiting an application where I need to do something at the begining of every appointment using the radscheduler.

How can I have an event every time that an appointment is starting without opening the alarm window of the radremainder?

 Thanks for the help

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jan 2016
1 answer
189 views

I have a winforms project which uses "plugins" which get resolved at runtime. The core project loads and displays user controls that are defined in the plugin .dlls. I have recently updated my primary project to use version 2015.3.930.40 versions of the controls. 

When it now tries to load a "plugin" that references an older versions (example 2014.2.715.40) in gets an error.  

I cannot control which versions of plugins other developers use to make their plugins and I need to make sure I load them by reflection. 

I saw this older thread from 2010:  http://www.telerik.com/forums/how-to-make-telerik-assemblies-of-different-versions-coexist

I was hoping there was a to fix this now. 

Thanks in advance for any help,
-Scott 

Dimitar
Telerik team
 answered on 25 Jan 2016
2 answers
61 views

When i create form with RadForm and inherited RadRibbonForm then button close control under display RadRibbonForm with theme Office2013Light

 

khanhnd
Top achievements
Rank 2
 answered on 21 Jan 2016
1 answer
332 views

Hi, I'm just getting to grips with Chartview for Winforms and wondered what the best way is to allow someone to draw shapes and lines on a chart, and have the ability for those shapes to zoom and pan with the chart? I saw a few posts suggesting that it might be possible to use RadDiagram together with Chartview to achieve this?

Any helpful reposnses would be grately appreciated.

Hristo
Telerik team
 answered on 20 Jan 2016
2 answers
168 views

Greetings,

I am attempting to search a loaded PDF document for a specific bit of text which can be located via the navigator controls but the PdfViewerElement.Find isn't able to find it.

 I have included my code below which I got from the online documentation and you can see the pdf I am searching at this address http://ab.rockwellautomation.com/Programmable-Controllers/MicroLogix-1100#documentation

 Is there something I am doing wrong in my code that the PDFNavigators search function can locate text but mine cannot?

 

Thank you!

Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Dim opt As New Telerik.Windows.Pdf.Documents.Fixed.Search.TextSearchOptions
 
    DaViewer.LoadDocument("C:\Users\Sean\Desktop\1763-um001_-en-p.pdf")
 
    opt.CaseSensitive = False
    opt.WholeWordsOnly = False
 
    Dim res As Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult = DaViewer.PdfViewerElement.Find("Allen", opt)
 
    If res Is Telerik.Windows.Pdf.Documents.Fixed.Search.SearchResult.NotFound Then
        RadMessageBox.Show("String not found")
    Else
        RadMessageBox.Show("Result found on page " & res.Range.StartPosition.Page.PageNo)
    End If
End Sub

Hristo
Telerik team
 answered on 20 Jan 2016
2 answers
136 views

Hello there,

I have some problems with the gridview control when using three-stated checkboxcolumns. To recreate the problem, create a new telerik winforms project and in the mainform add a gridview. Dock this gridview to the form. 

 Then, add the following columns and change the options as follows:

GridViewTextBoxColumm

 FieldName: Id

 Name: Id

 MinWidth: 80 (important for later)

 

GridViewTextBoxColumm
FieldName: Name
Name: Name
MinWidth: 150

 

GridViewCheckBoxColumn

FieldName: Test1

Name: Test1

MinWidth: 80

ThreeState: true

 

GridViewCheckBoxColumn
FieldName: Test2
Name: Test2
MinWidth: 80
ThreeState: true

 

GridViewCheckBoxColumn
FieldName: Test3
Name: Test3
MinWidth: 80
ThreeState: true

 

GridViewDateTimeColumn

FieldName: CurrentDateTime

Name: CurrentDateTime

MinWidth: 200

 

GridViewDecimalColumn

FieldName: Nr

Name: Nr

 

GridViewCheckBoxColumn

FieldName: Test4

Name: Test4

MinWidth: 80

 

The extra columns and minimal width are only there to make the sure you can scroll horizontally.

Change the codebehind for RadForm1 to the following:

public partial class RadForm1 : Telerik.WinControls.UI.RadForm
 {
     public RadForm1()
     {
         InitializeComponent();
     }
 
     private void RadForm1_Load(object sender, EventArgs e)
     {
         this.radGridView1.DataSource = GetTestData();
     }
 
     private List<TestData> GetTestData()
     {
         List<TestData> test = new List<TestData>();
 
         for (int i = 0; i < 100; i++)
         {
             test.Add(new TestData()
                 {
                     Id = i + 1,
                     Name = i.ToString(),
                     Test1 = i % 2 == 0 ? true : (bool?)null,
                     Test2 = i % 3 == 0 ? false : (bool?)null,
                     Test3 = i % 5 == 0 ? (bool?)null : false,
                     CurrentDateTime = DateTime.Now,
                     Nr = i,
                     Test4 = i % 2 == 0 ? true : false
                 });
         }
 
         return test;
     }
 }

To trigger the error, run the project, do not enlarge the window, and try to add a new line. Fill in a new id and a new name, keep Test1 to it's initial (third) state and uncheck Test2. Then, without pressing enter, scroll left and right by grabbing the horizontal scrollbar and moving quickly left and right. At that moment you should get the following error:

 

TargetInvocationException:  
bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bij System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bij System.Delegate.DynamicInvokeImpl(Object[] args)
   bij System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   bij System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   bij System.Threading.ExecutionContext.RunInternal(ExecutionContext
(Innerexception)
NullReferenceException: 
bij Telerik.WinControls.UI.BaseGridEditor.OnValueChanging(ValueChangingEventArgs e)
   bij Telerik.WinControls.UI.RadCheckBoxEditor.SetValue(Object value)
   bij Telerik.WinControls.UI.RadCheckBoxEditor.set_ThreeState(Boolean value)
   bij Telerik.WinControls.UI.GridCheckBoxCellElement.SetThreeState(GridViewColumn column)
   bij Telerik.WinControls.UI.GridCheckBoxCellElement.Initialize(GridViewColumn column, GridRowElement row)
   bij Telerik.WinControls.UI.GridVirtualizedCellElement.Attach(GridViewColumn data, Object context)
   bij Telerik.WinControls.UI.GridCheckBoxCellElement.Attach(GridViewColumn data, Object context)

 

So, my question would be: what am I doing wrong and how can I avoid this?

 

Thanks in advance

 Then, add the following columns and cha
 Then, add the following columns and cha
Jasper
Top achievements
Rank 1
 answered on 20 Jan 2016
1 answer
158 views

 Hi!

I have a Telerik GridView (RadGridView1), and two columns of this GridView contains cells (GridDataCellElement) with charts (RadChartElement())

Durung the scrolling all the cells are distorting. I've read a lot of topics, but I still don't understand how should I fix it. My case is different, than others.

How can I fix it?

 

Private Sub InitalizeGrid()
        AddHandler RadGridView1.CreateCell, AddressOf radGridView1_CreateCell
        Me.RadGridView1.TableElement.RowHeight = 130
        Me.RadGridView1.ReadOnly = True
        Me.RadGridView1.AutoExpandGroups = True
        Me.RadGridView1.AllowAddNewRow = False
        Me.RadGridView1.AllowColumnReorder = True
        Me.RadGridView1.EnableSorting = True
        Me.RadGridView1.ShowGroupPanel = False
        Me.RadGridView1.ShowRowHeaderColumn = True
        Me.RadGridView1.ForeColor = Color.Black
        Me.RadGridView1.AllowSearchRow = True
        Me.RadGridView1.AutoGenerateColumns = False
        Me.RadGridView1.VirtualMode = False
        Me.RadGridView1.MasterTemplate.VirtualMode = False

        RadGridView1.MasterTemplate.Columns.Add(newTextBoxColumn("ID", 100, "ID"))
        RadGridView1.MasterTemplate.Columns.Add(newTextBoxColumn("Name", 220, "Name"))
        RadGridView1.MasterTemplate.Columns.Add(newTextBoxColumn("Chart 1", 220, "Chart 1))
        RadGridView1.MasterTemplate.Columns.Add(newTextBoxColumn("Chart 2", 220, "Chart 2"))

        'SQL
        Dim sqlDt As SqlDataTable
        Try
----------------------------------------------
            Dim sqlDa As New SqlDataAdapter()
            sqlDa.SelectCommand = SqlCmd
            sqlDa.Fill(sqlDt)
----------------------------------------------

            Me.RadGridView1.MasterTemplate.BeginUpdate()
            RadGridView1.DataSource = sqlDt
            Me.RadGridView1.MasterTemplate.EndUpdate()

            gvSourceAnalysis.DataSource = sqlDt
            sqlDa.Dispose()
        Catch ex As Exception
            Throw ex
        End Try
    End Sub

   Private Function newTextBoxColumn(ByVal columnName As String, ByVal columnWidth As Integer, ByVal fieldName As String) As GridViewTextBoxColumn
        Dim textBoxColumn As New GridViewTextBoxColumn()
        textBoxColumn.Name = columnName
        textBoxColumn.HeaderText = columnName
        textBoxColumn.FieldName = fieldName
        textBoxColumn.Width = columnWidth
        textBoxColumn.TextAlignment = ContentAlignment.BottomRight
        textBoxColumn.ReadOnly = True
        Return textBoxColumn
    End Function

    Private Sub radGridView1_CreateCell(ByVal sender As Object, ByVal e As GridViewCreateCellEventArgs)
        If e.CellType Is GetType(GridDataCellElement) AndAlso (e.Column.Name = "Chart 1" OrElse
                                                               e.Column.Name = "Chart 2" OrElse) Then
            Dim chart As New RadChartElement()
            Dim lineSeries As New LineSeries()
            chart.View.Margin = New Padding(3)
            chart.GradientStyle = Telerik.WinControls.GradientStyles.Solid
            chart.AutoToolTip = True
            chart.View.ShowTrackBall = True

            lineSeries = New LineSeries()
            lineSeries.BorderColor = Color.FromArgb(68, 68, 68)
            'lineSeries.PointSize = New SizeF()
            If sqlDt.Rows.Count > 0 Then
                If e.Column.Name = "Chart 1" Then
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql1"))), "1"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql2"))), "2"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql3"))), "3"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql4"))), "4"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql5"))), "5"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql6"))), "6"))
                ElseIf e.Column.Name = "Chart 2" Then
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql7"))), "7"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql8"))), "8"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql9"))), "9"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql10"))), "10"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql11"))), "11"))
                    lineSeries.DataPoints.Add(New CategoricalDataPoint(CDbl(Val(sqlDt.Rows(e.Row.Data.Index).Item("ColumnFromSql12"))), "12"))
                End If
            End If
            chart.View.Series.Add(lineSeries)
            Dim gridDataCell As New GridDataCellElement(e.Column, e.Row)
            gridDataCell.Padding = New Padding(0)
            gridDataCell.Children.Add(chart)
            e.CellElement = gridDataCell
            e.CellType = GetType(GridDataCellElement)
        End If
    End Sub

Dimitar
Telerik team
 answered on 20 Jan 2016
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?