Telerik Forums
UI for WinForms Forum
1 answer
183 views

Hi,

I have used a RadGridView Element with different columns. One column is a GridViewMultiComboBoxColumn with a valuemember and a displaymember, When I drop down the combo I see the displaymember correctly. But when I leave the row I only see the valuemember (1,2,3..)

 

  Private Sub RadGridView2_CellEditorInitialized(sender As Object, e As GridViewCellEventArgs) Handles RadGridView2.CellEditorInitialized
    If e.Column.Name = "FeldArt2" Then
      Dim editor As RadMultiColumnComboBoxElement = e.ActiveEditor
      If IsNothing(editor) = False Then
        Dim el As RadMultiColumnComboBoxElement = editor
        el.AutoCompleteMode = AutoCompleteMode.Suggest
        Dim lFeldArt As New List(Of clFeldArt)
        lFeldArt.Add(New clFeldArt(1, "Date Picker"))
        lFeldArt.Add(New clFeldArt(2, "Textfeld"))
        lFeldArt.Add(New clFeldArt(3, "Combo"))
        lFeldArt.Add(New clFeldArt(4, "Checkbox"))
        el.ValueMember = "FeldID"
        el.DisplayMember = "FeldArt"
        el.DataSource = lFeldArt
        el.AutoSizeDropDownToBestFit = True
        editor.Columns("FeldID").IsVisible = False
      End If
    End If
  End Sub

 

I have attached a file which explain what I mean.

Does anybody has an Idea whats wrong?

Thanks in advance for any help.

Karim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 May 2017
2 answers
147 views

The added functionality to the full-text search in 2017.2 is really cool, especially the new close button.

An intuitive way to close the full-text search was on my to-do list for quite some time.

However, I noticed that the AllowSearchRow Property stays true even if the search row was closed/hidden by the user.

What's the best way to test if the full-text search row is currently visible?

So far, I have extended the grids context menu like this:

 

var searchRowMenuItem = new RadMenuItem("Full-text Search (Ctrl+F)");
            searchRowMenuItem.Click += this.searchRowMenuItem_Click;
            searchRowMenuItem.IsChecked = this.AllowSearchRow;

 

erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 12 May 2017
1 answer
187 views

Hello,

 

I need to have in both gridview and classic editor a user input to read decimal numbers (type float, double, decimal ...it does not matter) .

For the moment i m using RadSpinEditor and it is ok for values like 123.45 but sometimes the user can enter values like 0.000000150.

For the moment i m changing the number of decimal in the RadSpinEditor when the user have to enter very little values.

RadSpinEditor is very good for my needs because it has a maximum and minimal value and i use them.

RadSpinEditor can display in Hexadecimal format.

What is the best way to have the scientific format with RadSpinEditor?

 

thanks

 

Vincent.

Hristo
Telerik team
 answered on 12 May 2017
0 answers
271 views
I have a radtextbox. But the cursor is blinking in the top. I want the cursor to be in the middle of the textbox. How can i do that?
Rohanjoy
Top achievements
Rank 1
 asked on 12 May 2017
2 answers
188 views

Hello,

I associeted a RadRangeSelector to a RadChartView.

 

When i populated the first time the series of RadChartView. All is ok .

When i rebuild all my series of the RadChartView , the RadRangeSelector is not updated.

 

How update the RadRangeSelector when i update series.

Thanks.

Regards

Vincent.

 

 

Vincent
Top achievements
Rank 1
 answered on 11 May 2017
12 answers
1.4K+ views
Hi.

I'm using RadControls for WinForms Q3 2008 SP2 and i always have problems to refresh the RadGridView.

I have a class ObjectInfo with some properties.

I have a form with a RadGridView and a BindingList :

private BindingList<ObjectInfo> _listObjects;

In Form1_Load :
radGrid.DataSource=_listObjects;

When I change one property of an object of _listObjects, the Refresh method doesn't work, the only way to refresh the GridView is to do :

radGrid.DataSource = null;
radGrid.DataSource = _listObjects;

Is there any other solution ? Because it takes time because there are many rows, rows are formatted with different colors depending on the value of a column (Event RowFormatting), and the grid scrolls on the first row so I have to call the EnsureVisible method because the user can't see anymore the selected row. And also I have to redefine columns (Width, FormatString for Date for example, etc...).

Thanks.
Hristo
Telerik team
 answered on 11 May 2017
13 answers
2.3K+ views
When the checkbox is focused and the enter key is pressed, the checkbox then gets checked.
This is an undesired feature, and my client requested that the spacebar only will check and uncheck the checkbox.

How do I change this?
Dimitar
Telerik team
 answered on 11 May 2017
1 answer
376 views

I tried to update Telerik UI for Winforms today to the latest version. Everything builds and the app runs. However, when I navigate to a form that contains Pie Charts, the app crashes with an unhandled exception and I get the below Overflow error.

What changed with the chartview control that would cause this? Is this something I can fix on my end? or do I need to wait for a bug fix release?

 

System.OverflowException: Overflow error.
   at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
   at System.Drawing.Graphics.DrawRectangle(Pen pen, Single x, Single y, Single width, Single height)
   at Telerik.WinControls.Paint.RadGdiGraphics.DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, Single penWidth, Brush brush, DashStyle dashStyle, Single[] dashPattern)
   at Telerik.WinControls.Paint.RadGdiGraphics.DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, Single penWidth, DashStyle dashStyle, Single[] dashPattern)
   at Telerik.WinControls.Primitives.BorderPrimitiveImpl.DrawRectangle(IGraphics graphics, RectangleF rectangle, Color[] gradientColors, Single width)
   at Telerik.WinControls.Primitives.BorderPrimitiveImpl.PaintBorder(IGraphics graphics, Single angle, SizeF scale, RectangleF preferedRectangle)
   at Telerik.WinControls.UI.LabelElementDrawPart.Draw()
   at Telerik.WinControls.UI.PieLabelElementDrawPart.Draw()
   at Telerik.WinControls.UI.PieRenderer.Draw(Object context)
   at Telerik.WinControls.UI.ChartArea.Render(Object context)
   at Telerik.WinControls.UI.ChartView.Draw(Object context)
   at Telerik.WinControls.UI.RadChartElement.PaintElement(IGraphics graphics, Single angle, SizeF scale)
   at Telerik.WinControls.RadElement.DoOwnPaint(IGraphics graphics, Single angle, SizeF scale)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RootRadElement.Paint(IGraphics graphics, Rectangle clipRectangle)
   at Telerik.WinControls.RadControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Dimitar
Telerik team
 answered on 11 May 2017
3 answers
155 views

I'm writing with regard to a problem I'm encountering when a user edits RadGridView data that has been filtered.

The filtering is being done through a DataView expression, e.g.     CONVERT([NumberOfStaffAvailable],'System.Decimal')>=10

The user then edits the NumberOfStaffAvailable field for one of the displayed rows to be less than 10, so that row is no longer valid as part of the filtered recordset.

When the user presses the Enter key a NullReference exception is thrown, the callstack is listed below.

I've tried calling SuspendLayout() and SuspendUpdate() in the CellBeginEdit event, and resuming them in the CellEndEdit event, but with no luck.

I'd be grateful for any advice on how get around this problem,

I'm using WinControls v. 2016.3.1024.40

Thanks and kind regards

James

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.GridDataCellElement.set_Value(Object value)
   at Telerik.WinControls.UI.GridViewEditManager.EndEditCore(Boolean validate, Boolean cancel)
   at Telerik.WinControls.UI.GridViewEditManager.EndEdit()
   at Telerik.WinControls.UI.GridRowBehavior.ProcessEnterKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKeyDown(KeyEventArgs keys)
   at Telerik.WinControls.UI.BaseGridEditor.OnKeyDown(KeyEventArgs keyEventArgs)
   at Telerik.WinControls.UI.RadTextBoxEditor.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadTextBoxEditor.TextBoxItem_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.KeyEventHandler.Invoke(Object sender, KeyEventArgs e)
   at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   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 wparam, IntPtr lparam)










Dimitar
Telerik team
 answered on 11 May 2017
2 answers
281 views

Hi,

I fill my grid with one SQL table which contains an int col "SENT".

Its values are -1 for "OK" and 0 for "Not OK".

 

By default, the radgridview bind checked = 1 and unchecked = 0.

Is it possible to bind the checkbox column of the radgridview with -1=checked and 0=unchecked ?

 

Thank you.

 

 

perico
Top achievements
Rank 1
Iron
 answered on 10 May 2017
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?