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
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?
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
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.
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
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?
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
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,
Steps to reproduce the exception
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