Telerik Forums
UI for WinForms Forum
1 answer
373 views

Hello,

Is it any easy way to show enum DisplayValues from enum Description attribute?

public enum ObjectType
    {
        [Description("Textual information in the Html format")]
        TextHtml,
        [Description("Textual information in the Xaml format")]
        TextXaml,
        [Description("Binary Data")]
        Binary
    }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Oct 2019
5 answers
216 views

We're getting a Divide by Zero exception from one of the Telerik components.  We can't track it down.

We create an instance of a COM component which is an old COM dll.  Any time we try to open a form with Telerik controls on it the application crashes with a StackOverflow exception.  I've attached the stack.  This is a really high priority item for us at this point and holding up our release.  :(

Additionally, we can create an instance of the COM component in a test application without any problems whatsoever.

 

************** Exception Text **************
System.DivideByZeroException: Attempted to divide by zero.
   at Telerik.WinControls.UI.RadCommandBarItemsPanel.ArrangeOverride(SizeF arrangeSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.UI.CommandBarStripElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.UI.CommandBarRowElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.Layouts.StackLayoutPanel.ArrangeOverride(SizeF arrangeSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.UI.LightVisualElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.UI.RadCommandBarElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.RadElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
   at Telerik.WinControls.RadControl.OnLoad(Size desiredSize)
   at Telerik.WinControls.UI.RadCommandBar.OnLoad(Size desiredSize)
   at Telerik.WinControls.RadControl.LoadElementTree(Size desiredSize)
   at Telerik.WinControls.RadControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Oct 2019
11 answers
918 views

Hi,

we are printing out a PDF through PdfViewer.Print() utilizing a RadPrintDocument for removing the margins (new Margins(0,0,0,0)).

Unfortunately there still seem to be (very small) margins applied during print-out, because when printing the document with an external tool (e.g. Adobe Acrobat Reader) these document borders are much smaller.

Is there anything else we have to consider when printing?

Georgi
Telerik team
 answered on 24 Oct 2019
4 answers
127 views

Hi, I was wondering if someone could help.

I want to create a layout/cardview of a single record, I tried this via layout groups but they don't really fit side by side.

Has this been done before?

Mark
Top achievements
Rank 1
 answered on 23 Oct 2019
4 answers
136 views

Can you explain why you forbid the empty char ?
As far as i can see you can set it in the exposed child element (maskEditBoxElement) and it is handled correctly if set as empty.
I need it as empty, so i'm wondering if i'll run into problems that i currently can not see.

public char PromptChar
{
  get
  {
    return this.maskEditBoxElement.PromptChar;
  }
  set
  {
    if (value == char.MinValue)
      throw new ArgumentException("Specified Character is not valid for this property!");
    this.maskEditBoxElement.PromptChar = value;
  }
}
Tomislav
Top achievements
Rank 1
 answered on 23 Oct 2019
7 answers
656 views

Hi

 

I have got the following code in my form load function;

        da_products = New OleDb.OleDbDataAdapter(SQL_String, con)

        dt_Products = New DataTable

        'Create Datatable
        da_products.Fill(dt_Products)

        'Assign datatable to datagrid
        RadGridView1.DataSource = dt_Products
        RadGridView1.Columns(0).Width = 100
        RadGridView1.Columns(1).Width = 300

    End Sub

This displays the database as expected (two text fields and around twenty tick boxes).

 

I then have a button to allow me to save the RADGRIDVIEW back to my database, but this does not work and comes up with error

System.InvalidOperationException: 'Update requires a valid UpdateCommand when passed DataRow collection with modified rows.'

 

Code in update button;

 

    Private Sub CmdDatabaseSave_Click(sender As Object, e As EventArgs) Handles cmdDatabaseSave.Click
                da_products.Update(dt_Products)

  End Sub

 

da_products and dt_Products are defined as global

  Public da_products As OleDb.OleDbDataAdapter
    Public dt_Products As DataTable

 

Thanks

Neil

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Oct 2019
1 answer
275 views
I have upgraded my project to Version=2019.3.917.40 but the tool box is stuck at 2019 R2  I have tried the update with Tools -> Extensions and updates but it is still stuck.  How do I get the toolbox to force an update.
Yana
Telerik team
 answered on 23 Oct 2019
8 answers
281 views
hello sir , im using your telerik library . sir we  are using the radial gauge but i want to use my real time data to move the needle of the gauge , can u please help me out how we can do the programming .
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Oct 2019
21 answers
1.3K+ views

I want to add a column to the GridView that will allow me to assign and display multiple values for an item.

For example, imagine you want to track the types (home, office, cell) of telephone numbers for users. Note, this is not my actual requirement.  A user can have multiple telephone number types. I don't want to display two separate rows in the GridView for the same user, though. I want to display one row per user, and have the telephone types column allow the display and assignment of multiple telephone number types (e.g., home, office, cell).

A co-worker came up with the idea of creating a User Control that would contain a combobox control to allow the user to select the telephone number types in the combobox and display the selected values in a listbox below it. I specifically chose types for this example, because there's a limited, known set of them-- that's where the idea of the combobox control came in, that is, I need to choose from a limited set of choices.

I looked at the Forums blog titled, "Possible to Add a User Control a A Grid Column," at the following url:
 http://www.telerik.com/community/forums/winforms/gridview/possible-to-add-a-user-control-to-a-grid-column.aspx 
 . . . and tried to implement the solution therein, but when I tried defining a variable of type GridViewDataColumn I got the following design-time error message:
 'New' cannot be used on a class that is declared 'MustInherit'.

I also tried defining a variable of GridViewColumn, but got the same error message.

Is there a way to add a User Control to a GridView?

As a separate, but related issue, can I add a LinkLabel control to the GridView, and can the GridViewComboBoxColumn display multiple selections?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Oct 2019
3 answers
101 views

Hi,

We need to remove the local row option in scheduler from the day view. Screenshot mentioned below for your reference.

screenshot

Nadya | Tech Support Engineer
Telerik team
 answered on 22 Oct 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?