case "GroupDescriptors":
{
List<
GroupDescriptorProxy
> groupDescriptorProxies = new List<
GroupDescriptorProxy
>();
foreach (GroupDescriptorBase descriptor in gridView.GroupDescriptors)
{
if (descriptor is GroupDescriptor)
{
groupDescriptorProxies.Add(new GroupDescriptorProxy()
{
ColumnUniqueName = (descriptor as GroupDescriptor).Member,
SortDirection = descriptor.SortDirection,
});
}
else if (descriptor is ColumnGroupDescriptor)
{
groupDescriptorProxies.Add(new GroupDescriptorProxy()
{
ColumnUniqueName = (descriptor as ColumnGroupDescriptor).Column.UniqueName,
SortDirection = descriptor.SortDirection,
});
}
}
return groupDescriptorProxies;
}
case "GroupDescriptors":
{
gridView.GroupDescriptors.SuspendNotifications();
gridView.GroupDescriptors.Clear();
List<
GroupDescriptorProxy
> groupDescriptorProxies = value as List<
GroupDescriptorProxy
>;
foreach (GroupDescriptorProxy proxy in groupDescriptorProxies)
{
GridViewColumn column = gridView.Columns[proxy.ColumnUniqueName];
GroupDescriptorBase gd = null;
if (column != null)
{
gd = new ColumnGroupDescriptor()
{
Column = column,
SortDirection = proxy.SortDirection
};
}
else // assume GroupDescriptor
{
gd = new GroupDescriptor()
{
Member = proxy.ColumnUniqueName,
SortDirection = proxy.SortDirection
};
}
gridView.GroupDescriptors.Add(gd);
}
gridView.GroupDescriptors.ResumeNotifications();
}
Hi,
I try drag & drop function from gridview1 to gridview2 in wpf application. but i don't know
please help me..
Thanks.
tc.EndPoint =
new
Point(e.Shape.Connectors[
"Right"
].AbsolutePosition.X + 20, e.Shape.Connectors[
"Right"
].AbsolutePosition.Y);
private
void
diagram_ShapeDeserialized_1(
object
sender, Telerik.Windows.Controls.Diagrams.ShapeSerializationRoutedEventArgs e)
{
if
(e.Shape.OutgoingLinks.Count() == 0)
{
CreateTrueConnection(e);
CreateFalseConnection(e);
}
if
(e.Shape
is
IFlowchartStepUI)
((IFlowchartStepUI)e.Shape).LoadStep(_stepsData, e.Shape.Id);
}
private
void
CreateTrueConnection(Telerik.Windows.Controls.Diagrams.ShapeSerializationRoutedEventArgs e)
{
RadDiagramConnection tc =
new
RadDiagramConnection();
tc.Stroke = Brushes.Green;
tc.StrokeThickness = 2;
// Add the "True" Label
var lbltrue =
new
System.Windows.Controls.Label();
lbltrue.Style =
this
.FindResource(
"TrueLabelStyle"
)
as
Style;
lbltrue.Content =
"True"
;
tc.Content = lbltrue;
//tc.Position = new Point(750, 150);
tc.SourceConnectorPosition = Telerik.Windows.Diagrams.Core.ConnectorPosition.Right;
//tc.TargetConnectorPosition = Telerik.Windows.Diagrams.Core.ConnectorPosition.Auto;
//tc.SourceCapSize = new System.Windows.Size(7, 7);
//tc.TargetCapSize = new System.Windows.Size(7, 7);
tc.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline;
//tc.StartPoint = new Point(750, 150);
Console.WriteLine(e.Shape.Connectors[
"Right"
].AbsolutePosition.X.ToString());
Console.WriteLine(e.Shape.Connectors[
"Right"
].AbsolutePosition.Y.ToString());
tc.EndPoint =
new
Point(e.Shape.Connectors[
"Right"
].AbsolutePosition.X + 20, e.Shape.Connectors[
"Right"
].AbsolutePosition.Y);
tc.TargetCapType = Telerik.Windows.Diagrams.Core.CapType.Arrow2Filled;
tc.Source = e.Shape;
this
.diagram.AddConnection(tc);
}
hi
i'm using Radgridview , My scenario is i have totals in one row i need to enter some numbers in next row cells ,when ever i entered number ,based on that number it calculate % of above totals and the calculated figure should be displayed in next row ..... how to implement this cell triggers using C# plz help me
If you see below attachment u can understand .. if i enter 10 in cell then the calculated total figure should to next row cells
thanks in advance
control, but several RichTextBox controls. For example, when my focus is in Subject field, I should be able to add a Mail Merge to that control. When my focus is in main body, all mail merge fields should go there. Of course, when I scan through items, both should change.
If someone can attach a sample program, it would be best.
Thank you in advance.
Michael