Telerik Forums
UI for WinForms Forum
1 answer
808 views

hi every one  

i using data-table to bind data-source of radgridview from SQL database . one of my radgridview column is a numeric . i want to apply thousand separator to that column (like 91000 => 91,000).

i change radgridview formatstring properties to "{0:n0}" and datatype to "System.Decimal" from design view . and set thousand-seperator properties to true.

but still noting change and number on than column view without thousand separator , please help .

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Oct 2019
6 answers
966 views

Hello, I have some question when I'm doing data validation.

Too big to attch, Please see gif on https://drive.google.com/file/d/1EVPmQXUDcdogYR6cas_nQZztAwCMySD8/view

As my url, I hope can add rows only if column2 has value.

It's work perfect when I'm clicking other space area.

But when I'm clicking Close Button, It's will fired RowValidating and AddRow at the same time, and I can't closed this form by close button.

Is there anything I doing wrong? Or there have other solution to let me solve this problem?

Thanks for your assistance.

 
Fish
Top achievements
Rank 1
 answered on 31 Oct 2019
4 answers
327 views

Hi *,

how is it possible to define the Location of the Forms Control box (Close, max, min) for the form to be right, the form Icon in the left and the title in the middle?

I use Crystal Dark theme and there is by Default the locaiton on the left side of the Dialog as it should be :)

 

Thanks

Rostislaw

 

 

Dimitar
Telerik team
 answered on 31 Oct 2019
13 answers
2.5K+ views
Hello,

How do you get and set the selected index on a RadGridView control.
There is no such thing as .SelectedIndex on the grid.

Thanks,
Stephan
Dimitar
Telerik team
 answered on 30 Oct 2019
2 answers
632 views

Hi

I have tried to rotate the text in the column text as per your instructions on the web but it doesn't work, what am I doing wrong (VB Net)

 

     RadGridView1.ViewCellFormatting += radGridView1_ViewCellFormatting()
        RadGridView1.TableElement.TableHeaderHeight = 90
        RadGridView1.Rows(0).IsSelected = True

 

Nadya | Tech Support Engineer
Telerik team
 answered on 29 Oct 2019
5 answers
1.3K+ views

Hello

I wonder if I make the correct use of the CellFormatting Event:

I have a grid that contains only one line

In the CellFormatting event I modify the cell text as following:

        If cell.ColumnInfo.Name = "licence_type_id" Then
            Dim LicenceType As wsWSTLicence.licence_type = wsLicenceTypes.Find(Function(x) x.id.Equals(cell.Value))
            cell.Text = LicenceType.Code & " (" & LicenceType.Description & ")"
            cell.TextAlignment = ContentAlignment.MiddleCenter
        End If

It works fine, however I realized that the code within the If Statement is called 6 times (which is the number of columns in my grid ..)
Is this normal ?
I would think that if my processing was heavy this would negatively impact the performance.

 

Also what is the difference between then CellFormatting Event and the ViewCellFormatting Event

 

Thanks in advance

Pierre-Jean

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Oct 2019
2 answers
380 views

Good Morning All,

I am developing an application that has a main Ribbon Form as the base form.

I have added a CrystalDark theme to the form and applied it and everything is displaying as i would expect in the designer.  However when i run the application the control buttons at the top of the form and the ribbon change to a standard default windows buttons. 

I have included before and after images to this post.

Can anyone please assist in how i can get this not to happen and the theme ones to override and always show even at run-time.

Tanks in advanced

Frosty

Luke
Top achievements
Rank 1
Veteran
 answered on 28 Oct 2019
8 answers
508 views

How do I setup a RadTimePicker to allow the user to enter seconds (as well as hours and minutes)?

Thanks,

 -Lou
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Oct 2019
1 answer
669 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
314 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?