Telerik Forums
UI for WinForms Forum
1 answer
89 views

Hi,

based on our corporate identity, we want to use specific set of colors only. Is there any possibility to pre-define our company colors into RadColorDialog. pickers?

thanks

Georgi

Hristo
Telerik team
 answered on 26 Apr 2016
3 answers
210 views

hi,

how can I solve the problem of the date labels cut on the x axis.

see attached image

tanks in advance. Guido.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Apr 2016
1 answer
130 views

Hi,

I am new to telerik.
Added filter to radgridview.Some default value i have set for some column when i am adding new row .
facing problem  when trying to do filter it is taking default values in filter also for all column whose default values i have set..Rowindex for both Add new row and filter are same.
how to remove these default values from filter?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Apr 2016
3 answers
310 views

Hello, 

I need to set the fill primitive of a control programatically.  Attached is a picture of what I need to accomplish. 

From the tree on the left (of the attached image) you can see I'm setting DockLayoutPanel.ToolwindowCaptionElement.FillPrimitive to the color red.  Works great from within the designer, but I need to do it via program control.  

 

It seems like this control, which is in a raddock, is part of a tool tab strip so I've tried...

 toolTabStrip11.SplitPanelElement.Fill.BackColor = Color.Red;

toolTabStrip11.SplitPanelElement.ForeColor = Color.Red;

and several other variations, but none of them changed the color.   Is there a way to do this grammatically? 

 

Thanks to anyone who can solve this, 

Steve

Dimitar
Telerik team
 answered on 26 Apr 2016
5 answers
224 views
Can the associated control be set at runtime?
Daniel
Top achievements
Rank 1
 answered on 25 Apr 2016
3 answers
117 views

Hi,

I am facing an exception when using excel-like filtering in RadGridView and use "Null" and some other value for filtering. The details is given below.

My system information,

  • OS: Windows 7, 64 bit
  • IDE: Visual Studio 2013
  • Language: C#, .NET 4.5
  • Telerik version: 2016.1.216.40 (2016 Q1)
  • Telerik Runtime version: v4.0.30319

Steps to reproduce the exception

  1. Create new Telerik Windows Forms Application
  2. Add Telerik.WinControls.GridView as reference
  3. In the generated RadForm add a RadGridView
  4. Add a text box column to the grid view
  5. Enable excel-like filtering in the grid view
    • radGridView1.EnableFiltering = true;
    • radGridView1.ShowFilteringRow = false;
    • radGridView1.ShowHeaderCellButtons = true;
  6. Run the project
  7. Add 4-5 rows with any values
  8. Edit at least one row, clear the value and press enter. This will make the value "Null" and "Null" will become available in filtering
  9. Press filter button and select "Null". This will uncheck all other filters
  10. Now check any other value excluding "Not Null"
  11. The exception is thrown, here's the stack trace -

Item has already been added. Key in dictionary: 'value 1'  Key being added: 'value 1'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
   at System.Collections.Hashtable.Add(Object key, Object value)
   at Telerik.WinControls.UI.FilterMenuTreeElement.UpdateNodeSelectionOnCheckedChanged(RadTreeNode node)
   at Telerik.WinControls.UI.FilterMenuTreeElement.treeView_NodeCheckedChanged(Object sender, RadTreeViewEventArgs e)
   at Telerik.WinControls.UI.RadTreeViewElement.OnNodeCheckedChanged(TreeNodeCheckedEventArgs e)
   at Telerik.WinControls.UI.RadTreeNode.OnCheckStateChanged()
   at Telerik.WinControls.UI.RadTreeNode.set_CheckState(ToggleState value)
   at Telerik.WinControls.UI.TreeNodeElement.ToggleElement_ToggleStateChanging(Object sender, StateChangingEventArgs args)
   at Telerik.WinControls.UI.RadToggleButtonElement.OnToggleStateChanging(StateChangingEventArgs e)
   at Telerik.WinControls.UI.TreeNodeCheckBoxElement.OnToggleStateChanging(StateChangingEventArgs e)
   at Telerik.WinControls.UI.RadToggleButtonElement.SetToggleStateCore(ToggleState value)
   at Telerik.WinControls.UI.RadToggleButtonElement.SetToggleState(ToggleState value)
   at Telerik.WinControls.UI.TreeNodeCheckBoxElement.OnToggle()
   at Telerik.WinControls.UI.RadToggleButtonElement.OnClick(EventArgs e)
   at Telerik.WinControls.RadElement.DoClick(EventArgs e)
   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.UI.RadTreeView.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at Telerik.WinControls.UI.RadTreeView.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)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Telerik_GridView_Test.Program.Main() in d:\Projects\Zitter\Test Projects\Telerik GridView Test\Telerik GridView Test\Program.cs:line 17
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

 

Looking forward to a quick solution for this.

Thanks and Regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Apr 2016
3 answers
839 views

Hi,

I am trying to set the backcolor of the DateTimePicker and TimePicker when disabled. I am already overriding the OnEnabledChanged event to replace the TextBoxElement with our custom text box so I can update the forecolor and this is all working OK and the backcolor of the textbox is correct, however the control border, dropdown arrow, etc. are still using the old color and I am unable to work out what properties I need to update to access these items.

How do i update the backcolor of all of the visible items for the entire DateTimePicker and for a TimePicker?

 

Thanks,

 

Mark.

Dimitar
Telerik team
 answered on 25 Apr 2016
5 answers
193 views

Hi, i'm using the latest Telerik release.

Only on some machines I got this error:

An exception was uncaught System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
   at Telerik.WinControls.UI.RadTreeViewElement.SynchronizeNodeElements()
   at Telerik.WinControls.UI.RadTreeViewElement.Update(UpdateActions updateAction)
   at Telerik.WinControls.UI.RadTreeView.OnGotFocus(EventArgs e)
   at System.Windows.Forms.Control.WmSetFocus(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 Telerik.WinControls.UI.RadTreeView.WndProc(Message& m)

Here's my Code, where am I doing something wrong?

//user control Load event

this.Load += new System.EventHandler(this.TreeView_Load);

private void TreeView_Load(object sender, EventArgs e)
{
radTreeView1.BeginEdit();
PatientEpicrisis epicrisis = MyAdapter.ReadPatientEpicrisis();
var currentNode = this.radTreeView1.Nodes["EpicrisiNode"];
currentNode.Nodes.Clear();
if (!string.IsNullOrEmpty(epicrisis.Note))
{
currentNode.Nodes.Add(epicrisis.EpicrisisSynthesis);
var lastNode = currentNode.LastNode;
lastNode.Tag = epicrisis;
lastNode.EndEdit();
}
else
{
currentNode.ContextMenu = radContextMenuEpicrisis;
}
currentNode.EndEdit();
radTreeView1.EndEdit();
}
Dimitar
Telerik team
 answered on 25 Apr 2016
1 answer
177 views
Hi I have a problem with a custom cell of a gridview, I'm using a PopupEditor I associate one popupcontainer controls but this when launching the event EditorRequired out empty someone could help me I would appreciate it very much add the code of the custom editor class

Public Class PopUpEditor
    Inherits BaseGridEditor

    Public Overrides Property Value () As Object
      Get
        As editor Dim Telerik.WinControls.UI.RadPopupEditorElement = CType (Me.EditorElement, Telerik.WinControls.UI.RadPopupEditorElement)
        Return editor.Value
      End Get
      Set (ByVal value As Object)
        As editor Dim Telerik.WinControls.UI.RadPopupEditorElement = CType (Me.EditorElement, Telerik.WinControls.UI.RadPopupEditorElement)
        If value AndAlso value isnot isnot Nothing Then DBNull.Value
          If Not IsNumeric (editor.Value) Then
            editor.Value = Convert.ToInt32 (value)
          End If
        else
          editor.Value = 0
        End If
      End Set
    End Property

    Public Overrides Sub BeginEdit ()
      MyBase.BeginEdit ()
      Me.EditorElement.Focus ()
      'AddHandler (CType (EditorElement, TrackBarEditorElement)). TrackPositionChanged, AddressOf TrackBarEditor_TrackPositionChanged
    End Sub

    Public Overrides Function EndEdit () As Boolean
      'RemoveHandler (CType (EditorElement, TrackBarEditorElement)). TrackPositionChanged, AddressOf TrackBarEditor_TrackPositionChanged
      Return MyBase.EndEdit ()
    End Function

    'Private Sub TrackBarEditor_TrackPositionChanged (ByVal sender As Object, ByVal e As EventArgs)
    'OnValueChanged ()
    'End Sub

    Protected Overrides Function CreateEditorElement () As Telerik.WinControls.RadElement
      CPOP Dim As New Telerik.WinControls.UI.RadPopupEditor
      Dim text As New Telerik.WinControls.UI.RadTextBoxControl
      Dim container As New Telerik.WinControls.UI.RadPopupContainer
      contenedor.PanelContainer.Controls.Add (text)
      texto.Dock = DockStyle.Fill
      texto.Text = "Hello"
      cpop.Name = "EditorPopUp"
      cpop.AssociatedControl = container
      Return cpop.PopupEditorElement 'Telerik.WinControls.UI.RadPopupEditorElement
    End Function
  End Class
Daniel
Top achievements
Rank 1
 answered on 23 Apr 2016
5 answers
247 views

Hello,

I use a hierarchical grid in my application.

I like to use an Excel like filter for the child rows, but the grid is filled with data by data binding or load on demand so the automatic filter selections are not provided by the grid. (See attached file). Now I like to manually add some filter checkboxes under the "All" checkbox, but I can't figure out how to achieve that.

I know this has to be done in the FilterPopupRequired event......

 

Thanks for Your help!

Regards

Ingo

Hristo
Telerik team
 answered on 20 Apr 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
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?