Telerik Forums
UI for WinForms Forum
1 answer
55 views
Is this by design?  If I perform a "SaveLayout" and the file already exists but it's HIDDEN flag is set, I get an access denied error.

Just curious. 

Stefan
Telerik team
 answered on 21 Dec 2011
3 answers
129 views

Hi,

When I set the Text property of one of the items to a Null string ("") and it's selected then the SelectedItem property of the DDL gives a Nothing value. If I set the Text property to f.e. 1 space (" ") then I don't have this problem.

Peter
Telerik team
 answered on 21 Dec 2011
5 answers
314 views
Hi All

I have a problem where Visual Studio is trying to use a telerik assembly (which it calls a Component Assembly) that resides in different folder from the one mentioned in the referenced assemblies list(Designer Assembly). It displays 3 error messages one after the other.

1. Here is the full text of the error in the first message box:
===========================================
Visual Studio Error Detected


Visual Studio is attempting to load class instances from a different assembly than the original used to create your components. This will result in failure to load your designed component. More information that will help you to correct the problem.

Component Assembly:

C:\Documents and Settings\Yosief.Kesete\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\aoxm94wn01\Telerik.WinControls.GridView.dll

Designer Assembly:

C:\Program Files\Telerik\RadControls for WinForms Q1 2010\bin\Telerik.WinControls.UI.Design.dll

Please close Visual Studio, remove the errant assembly and try loading your designer again.

Ensure that you do not attempt to save any designer that opens with errors, as this can result in loss of work. Note that you may receive this message multiple times, once for each component instance in your designer.

===========================================




2. And this is what gets displayed in the second message box:
===========================================

Error


An exception occurred while trying to update the data smart tasks, they will be disabled.

 

Property accessor 'DataSource' on object 'Telerik.WinControls.UI.Design.RadGridViewDesigner' threw the following exception:'[A]Telerik.WinControls.UI.RadGridView cannot be cast to [B]Telerik.WinControls.UI.RadGridView. Type A originates from 'Telerik.WinControls.GridView, Version=2010.1.10.308, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' in the context 'LoadNeither' at location 'C:\Documents and Settings\Yosief.Kesete\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\aoxm94wn01\Telerik.WinControls.GridView.dll'. Type B originates from 'Telerik.WinControls.GridView, Version=2010.1.10.308, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' in the context 'LoadFrom' at location 'C:\Program Files\Telerik\RadControls for WinForms Q1 2010\bin\Telerik.WinControls.GridView.dll'.'

===========================================



3. The following gets displayed in the last message box:
===========================================

Microsoft Visual Studio

The control Telerik.WinControls.UI.RadGridView has thrown an unhandled exception in the designer and has been disabled.

 

Exception:

Object reference not set to an instance of an object.

 

Stack trace:

===========================================



Any idea why that happening? Please help ASAP as I have spent 15 hours trying to figure why.

Thank you in advance
Yosief Kesete


Nikolay
Telerik team
 answered on 21 Dec 2011
8 answers
263 views
Is it possible to add hyperlinks to the RichTextBox and if so, is it possible to "catch" those links so that if a person for example clicks on a particular link you can programmatically call a procedure.

(I normally do this with the Microsoft Browser Control)
Prijesh
Top achievements
Rank 1
 answered on 21 Dec 2011
2 answers
107 views
Wasnt sure if this should be here or the RibbonBar section.. 
i followed the directions http://www.telerik.com/help/winforms/richtextbox-features-ribbon-ui.html, but get an error on step 6. Error message in the attached file. Please help
Nikolay
Telerik team
 answered on 21 Dec 2011
2 answers
144 views
Hi Telerik

I've been struggling over the weekend with a problem in our app. We currently use a pageview in stack mode to display a collection of items grouped into the pageview's pages. The pageview and its pages are generated programmatically and we use another control dock/filled into the pages to contain the items.

The items display fine in stack mode but the number of items to be displayed now requires a mechanism of display which allows scrolling. I thought I woud use explorerbar for this but when I change the mode of the pageview to explorerbar the controls containing the items no longer show up in the pages. The pageview and its pages do show up.

I have not been able to reproduce the problem in a simple project (the explorerbar idea works fine in the simple project). More strangely I only need to change
RadPageView temp = new RadPageView() { Dock = DockStyle.Fill };
temp.ViewMode = PageViewMode.ExplorerBar;
to
RadPageView temp = new RadPageView() { Dock = DockStyle.Fill };
temp.ViewMode = PageViewMode.Stack;
and the rest of the code in the app creates the correct pages, controls and items and displays them.

Are there any properties I need to set specific to the explorerbar mode which will allow the content of my pages to show when in explorerbar mode?

Have you come across this problem before?

Regards
Ian Carson 
Ivan Todorov
Telerik team
 answered on 21 Dec 2011
3 answers
224 views

Hello,

 

I'm looking for the Entity Framework equivalent of dataset's tableAdapter.Fill/tableAdapter.FillByBy.

Because they were reusable to refill a GridView (Windforms), possibly using a different 'where clause'.

The only way I know to fill/refill the GridView from DB now using EF with different parameters:

this.myBindingSource.DataSource =  myNewSelectQueryObject;

the 'first fill' with this works fine, but the second one will cause the DataSource et the GirdView to be impossible to edit. (Although the BindingSource the GridView are NOT 'readonly'.) a,d EF.Refresh() doesn't seem to update records that could be in the DB but are not present in the 'EF'.

 

Thank you for your help.

Julian Benkov
Telerik team
 answered on 21 Dec 2011
2 answers
213 views
Hi ,
i am using latest telerik version
in order to make radlistview transparent to form background i had set the color of radlistview to transparent but it always show a white background on runtime.
if there is any code or method to make radlistview transparent to parent form i will appreciate help.
Best regards, jack
jack abdallah
Top achievements
Rank 1
 answered on 21 Dec 2011
5 answers
261 views
We continue to have problems with using a GridViewDateTimeColumn with DateTimeOffset. I *thought* we had this working months ago, but revisited a feature that we have not used for many months and we cannot get it to work. Don't know if it is due to the version of the controls we are using? Or something we have done.

We continue to either get "Converter can't convert" or other types of formatting errors. To help demonstrate this problem, we did a very simple sample. Just try to drop down one of the calendar drop downs and the error occurs.

Here is the code:

Imports System.ComponentModel
Imports Telerik.WinControls.UI
  
Public Class Form1
  
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        TimeCardGrid.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill
        TimeCardBindingSource.DataSource = TimeCards.Retrieve()
    End Sub
  
End Class
  
Public Class TimeCard
    Public Property StartTime As DateTimeOffset?
    Public Property endTime As DateTimeOffset?
End Class
  
Public Class TimeCards
    Inherits BindingList(Of TimeCard)
  
    Public Shared Function Retrieve() As TimeCards
        Dim timeCardList As New TimeCards From
                {New TimeCard With {.StartTime = New DateTimeOffset(2011, 12, 8, 9, 45, 30, New TimeSpan(-8, 0, 0)),
                                    .endTime = New DateTimeOffset(2011, 12, 9, 11, 45, 30, New TimeSpan(-8, 0, 0))},
                 New TimeCard With {.StartTime = New DateTimeOffset(2011, 12, 11, 9, 45, 30, New TimeSpan(-8, 0, 0)),
                                    .endTime = New DateTimeOffset(2011, 12, 12, 11, 45, 30, New TimeSpan(-8, 0, 0))}}
        Return timeCardList
    End Function
End Class
  
<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.components = New System.ComponentModel.Container()
        Dim GridViewDateTimeColumn1 As Telerik.WinControls.UI.GridViewDateTimeColumn = New Telerik.WinControls.UI.GridViewDateTimeColumn()
        Dim GridViewDateTimeColumn2 As Telerik.WinControls.UI.GridViewDateTimeColumn = New Telerik.WinControls.UI.GridViewDateTimeColumn()
        Me.TimeCardBindingSource = New System.Windows.Forms.BindingSource(Me.components)
        Me.TimeCardGrid = New Telerik.WinControls.UI.RadGridView()
        CType(Me.TimeCardBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.TimeCardGrid, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'TimeCardBindingSource
        '
        Me.TimeCardBindingSource.DataSource = GetType(WindowsApplication9.TimeCard)
        '
        'TimeCardGrid
        '
        Me.TimeCardGrid.Location = New System.Drawing.Point(12, 12)
        '
        'TimeCardGrid
        '
        Me.TimeCardGrid.MasterTemplate.AllowAddNewRow = False
        Me.TimeCardGrid.MasterTemplate.AllowColumnChooser = False
        Me.TimeCardGrid.MasterTemplate.AllowColumnReorder = False
        Me.TimeCardGrid.MasterTemplate.AllowDeleteRow = False
        Me.TimeCardGrid.MasterTemplate.AllowDragToGroup = False
        Me.TimeCardGrid.MasterTemplate.AutoGenerateColumns = False
        GridViewDateTimeColumn1.DataType = GetType(System.Nullable(Of System.DateTimeOffset))
        GridViewDateTimeColumn1.FieldName = "StartTime"
        GridViewDateTimeColumn1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        GridViewDateTimeColumn1.FormatString = "{0:d}"
        GridViewDateTimeColumn1.HeaderText = "StartTime"
        GridViewDateTimeColumn1.Name = "StartTime"
        GridViewDateTimeColumn2.DataType = GetType(System.Nullable(Of System.DateTimeOffset))
        GridViewDateTimeColumn2.FieldName = "EndTime"
        GridViewDateTimeColumn2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        GridViewDateTimeColumn2.FormatString = "{0:d}"
        GridViewDateTimeColumn2.HeaderText = "EndTime"
        GridViewDateTimeColumn2.Name = "EndTime"
        Me.TimeCardGrid.MasterTemplate.Columns.AddRange(New Telerik.WinControls.UI.GridViewDataColumn() {GridViewDateTimeColumn1, GridViewDateTimeColumn2})
        Me.TimeCardGrid.MasterTemplate.DataSource = Me.TimeCardBindingSource
        Me.TimeCardGrid.MasterTemplate.ShowFilteringRow = False
        Me.TimeCardGrid.MasterTemplate.ShowRowHeaderColumn = False
        Me.TimeCardGrid.Name = "TimeCardGrid"
        Me.TimeCardGrid.ShowGroupPanel = False
        Me.TimeCardGrid.Size = New System.Drawing.Size(315, 235)
        Me.TimeCardGrid.TabIndex = 2
        Me.TimeCardGrid.Text = "RadGridView1"
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(347, 263)
        Me.Controls.Add(Me.TimeCardGrid)
        Me.Name = "Form1"
        Me.Text = "Form1"
        CType(Me.TimeCardBindingSource, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.TimeCardGrid, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
  
    End Sub
    Friend WithEvents TimeCardBindingSource As System.Windows.Forms.BindingSource
    Friend WithEvents TimeCardGrid As Telerik.WinControls.UI.RadGridView
  
End Class


Please let us know what we need to do to get this to work.

THANKS!
Peter
Telerik team
 answered on 21 Dec 2011
1 answer
99 views
is there a method to make listview transparent
Ivan Todorov
Telerik team
 answered on 21 Dec 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)
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?