Telerik Forums
UI for WinForms Forum
2 answers
142 views

Hello

I have found that we can allow the editor on the radtreeview level with the AllowEdit Property.

But on my treeview I have some nodes which should be editable and other which aren't.

How could I handle this ? Is it possible to prevent the initialization of the editor for some specific node ?

Thanks for you support

Marco
Top achievements
Rank 2
Veteran
 answered on 27 Apr 2016
5 answers
159 views

Hi,

I was testing the radGridView component and I was wondering how can I execute an action on double click, that is from scratch, I can see some info on the forum but its mostly particular to the post.

On my main form I fill the grid like:

        public Main()
        {
            InitializeComponent();

            grdMainWorkGrid.DataSource = WorksList.List();
        }

 

Regards.

Dimitar
Telerik team
 answered on 27 Apr 2016
1 answer
70 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
196 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
121 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
293 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
208 views
Can the associated control be set at runtime?
Daniel
Top achievements
Rank 1
 answered on 25 Apr 2016
3 answers
108 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
789 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
178 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
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?