Telerik Forums
UI for WinForms Forum
7 answers
347 views

Hello,

I'd like to remove the horizontal border in a grid within groups (GridViewColumnGroup not GroupDescriptor).

See the attached image, the green (verticals) borders are ok the red (horizontal) borders between the cells in the group are the ones I'd like to remove. (For normal cells and cells of the summary row)

I've tried the normal formatting events, but I found no information if a cell/row is inside a group?

So is this possible at all?

--

Also the GridViewColumnGroupRow.ColumnCollection is marked deprecated, so what is the best way to do this (the ColumnNameCollection dosen't help)?

GridViewColumnGroupRow groupRow = new GridViewColumnGroupRow();
groupRow.Columns.Add(this.kMRadGridView1.Columns["column"]);

Kind regars

 

Dimitar
Telerik team
 answered on 28 Apr 2016
1 answer
183 views

Good day!

I use PivotGrid in conjunction with ChartView.
As one of the columns of data to implement a class for adding a field of type TimeSpan.

This code implements summary of TimeSpan:

/// <summary>
    /// Computes the sum of TimeSpan items during pivot grouping
    /// </summary>
    public class TimeSpanSum : AggregateFunction
    {
        protected override AggregateValue CreateAggregate(Type dataType)
        {
            return new TimeSpanAggregateValue();
        }
 
        public override string DisplayName
        {
            get { return PivotGridLocalizationProvider.CurrentProvider.GetLocalizedString(PivotStringId.Sum); }
        }
 
        protected override void CloneCore(Cloneable source)
        {
            //
        }
 
        protected override Cloneable CreateInstanceCore()
        {
            return new TimeSpanSum();
        }
 
        public override string ToString()
        {
            return "Sum";
        }
    }

This code adding aggregate description:

dataProvider.AggregateDescriptions.Add(new PropertyAggregateDescription
{
    PropertyName = ObjectHelper<PivotGridUnitStateDto>.GetPropertyName(x => x.Duration),
    CustomName = "Duration",
    AggregateFunction = new TimeSpanSum(),
    StringFormatSelector = new TimeSpanStringFormatSelector()
});

But ChartView generate exception on paint any data:

Unable to bring the object type "System.TimeSpan" type "System.IConvertible". (Mscorlib)
------------------------------
Program Location:
 
   в System.Convert.ToDouble(Object value)
   в Telerik.WinControls.UI.PivotGridChartDataProvider.UpdateChartCore()
   в Telerik.WinControls.UI.PivotGridChartDataProvider.UpdateChartData()
   в Telerik.WinControls.UI.PivotGridChartDataProvider.updateTimer_Tick(Object sender, EventArgs e)

How can I fix this error?

 

Hristo
Telerik team
 answered on 27 Apr 2016
2 answers
124 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
141 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
61 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
178 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
103 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
277 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
190 views
Can the associated control be set at runtime?
Daniel
Top achievements
Rank 1
 answered on 25 Apr 2016
3 answers
100 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
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?