I'm re-visiting our previous approach to create an arrow annotation, as our current one is clunky - a line with a shape appended to the end of it to emulate an arrow. It doesn't scale well with zooming in and out and our QA folks are asking for a better implementation.
Is there any add-on widget to achieve an arrow annotation in a RadCartesianChart ?
Is there a newer Chart that has arrow annotations built in ?
Thanks,
Barry
I have a project which is using a base class (called Job) and two derived classes (Hire & Sales) - which share a lot of properties. When I add a string property to Hire and bind to that column in a gridview - the filtering icon doesn't appear above the column, however it works fine on when I bind to the base class - I've read that perhaps this is because it can't determine the datatype, but it is just a string.
This is a xaml example of two columns, next to each other, the first column displays the filter icon (SiteLocation is held within base class), the second column (SiteLocation1 held in Hire class) doesn't - they both show the correct data.
<
telerik:GridViewDataColumn
Header
=
"Location"
UniqueName
=
"Location"
DataMemberBinding
=
"{Binding ScheduleItemJob.SiteLocation}"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"True"
CellStyle
=
"{StaticResource GridViewCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Location1"
UniqueName
=
"Location1"
DataMemberBinding
=
"{Binding ScheduleItemJob.SiteLocation1}"
HeaderCellStyle
=
"{StaticResource GridViewHeaderCellStyle}"
IsReadOnly
=
"True"
CellStyle
=
"{StaticResource GridViewCellStyle}"
/>
I'm trying to disable moving a child shape of a RadDiagramContainerShape by override DraggingService as below:
public
class
MyDragging : DraggingService
{
private
readonly
RadDiagram diagram;
public
MyDragging(RadDiagram graph)
:
base
(graph
as
IGraphInternal)
{
this
.diagram = graph;
}
public
override
void
Drag(Point newPoint)
{
if
(
this
.DraggingModels.FirstOrDefault().ParentContainer !=
null
)
{
return
;
}
else
{
base
.Drag(newPoint);
}
}
}
It does make the child shape immovable. However, after I dragged the child shape, it will be removed from the parent container shape. (subShape.ParentContainer will be null). Then, when I drag the child shape again, it can be moved.
How to fix this issue?
I'm setting the style of my RadPane just like the 'VisualStudio' example:
<
Style
TargetType
=
"telerik:RadPane"
BasedOn
=
"{StaticResource RadPaneStyle}"
>
<
Setter
Property
=
"CanDockInDocum
entHost"
Value
=
"False"
/>
<
Setter
Property
=
"Header"
Value
=
"{Binding Header}"
/>
<
Setter
Property
=
"IsHidden"
Value
=
"{Binding IsHidden, Mode=TwoWay}"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadDocumentPane"
BasedOn
=
"{StaticResource RadPaneStyle}"
>
<
Setter
Property
=
"Header"
Value
=
"{Binding Header}"
/>
<
Setter
Property
=
"IsHidden"
Value
=
"{Binding IsHidden, Mode=TwoWay}"
/>
</
Style
>
My ViewModel has the IsHidden property, and is notifying fine. Removing the panels works. However, 'unhiding' them fails.
protected
override
RadPane CreatePaneForItem(
object
item)
{
var viewModel = item
as
IDockPane;
if
(viewModel ==
null
)
return
base
.CreatePaneForItem(item);
var pane = viewModel.PaneType == PaneType.DocumentPane ?
new
RadDocumentPane() :
new
RadPane();
pane.DataContext = item;
RadDocking.SetSerializationTag(pane, viewModel.Header);
pane.Content =
new
TextBlock { Text =
"Test"
};
return
pane;
}
After some searching these forums, it seems an issue with the binding not updating because it's removed from the visual tree? If so, is there any alternatives? How is the Visual Studio example getting around this? I can find no other code that attempts to restore the hidden panes - but maybe I'm missing it.
I tried simply listening for the IsHidden property change:
viewModel.PropertyChanged += (sender, args) =>
{
pane.IsHidden = viewModel.IsHidden;
};
And this half works. The first time it does nothing, but the second time you 'cycle' the IsHidden property (say with a checkbox) it appears again! Except the tabs are missing their headers.
The DataContext is set fine, and if I go in and press 'reset' on the binding in the Visual Studio live property editor it refreshes just fine to the right header.
Hi,
I need to implement a custom resize tool in RadImageEditorUI and set default width and hight. Is it possible to override resize tool?
Thank you very much for your responses
My warmest regards
Mesut
Hi everyone,
I have a GridView with 5 grouping, lots of data. When I expand the last level of grouping, I have this weird white space.
The issue is not present when I set the GroupRenderMode to Nested but the performance become terrible.
No difference when I change the value of AutoExpandGroups.
here is the code :
<
telerik:RadGridView
x:Name
=
"GridViewListingNumberList"
GroupRenderMode
=
"Flat"
VerticalAlignment
=
"Top"
VerticalContentAlignment
=
"Top"
telerik:StyleManager.Theme
=
"Windows"
Background
=
"Transparent"
ColumnBackground
=
"Transparent"
AlternationCount
=
"2"
SelectionUnit
=
"FullRow"
ItemsSource
=
"{Binding List.Presenter.ResultDisplay}"
MaxHeight
=
"900"
Margin
=
"5,5,5,10"
CanUserFreezeColumns
=
"False"
AutoExpandGroups
=
"False"
RowIndicatorVisibility
=
"Collapsed"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
MouseDoubleClick
=
"shareGrid_MouseDoubleClick"
ShowGroupPanel
=
"true"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
IsVisible
=
"true"
Header
=
"Marché"
UniqueName
=
"MarketName"
Width
=
"auto"
DataMemberBinding
=
"{Binding MarketName}"
IsReadOnly
=
"True"
ShowColumnWhenGrouped
=
"False"
>
<
telerik:GridViewDataColumn.GroupHeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Group.Key, StringFormat='Marché: {0}'}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.GroupHeaderTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
IsVisible
=
"true"
Header
=
"Payeur"
UniqueName
=
"PayerName"
Width
=
"auto"
DataMemberBinding
=
"{Binding PayerName}"
IsReadOnly
=
"True"
ShowColumnWhenGrouped
=
"False"
>
<
telerik:GridViewDataColumn.GroupHeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Group.Key, StringFormat='Payeur: {0}'}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.GroupHeaderTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
IsVisible
=
"true"
Header
=
"Périodicité"
UniqueName
=
"PeriodicityName"
Width
=
"auto"
DataMemberBinding
=
"{Binding PeriodicityName}"
IsReadOnly
=
"True"
ShowColumnWhenGrouped
=
"False"
>
<
telerik:GridViewDataColumn.GroupHeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Group.Key, StringFormat='Période: {0}'}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.GroupHeaderTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
IsVisible
=
"true"
Header
=
"Lot"
UniqueName
=
"MarketBatchName"
Width
=
"auto"
DataMemberBinding
=
"{Binding MarketBatchName}"
IsReadOnly
=
"True"
ShowColumnWhenGrouped
=
"False"
>
<
telerik:GridViewDataColumn.GroupHeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Group.Key, StringFormat='Lot: {0}'}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.GroupHeaderTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
IsVisible
=
"true"
Header
=
"Société"
UniqueName
=
"CompanyName2"
Width
=
"auto"
DataMemberBinding
=
"{Binding CompanyName2}"
IsReadOnly
=
"True"
ShowColumnWhenGrouped
=
"False"
>
<
telerik:GridViewDataColumn.GroupHeaderTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Group.Key, StringFormat='Société: {0}'}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.GroupHeaderTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
""
Width
=
"30"
SortMemberPath
=
"Statut"
IsReadOnly
=
"True"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBlock
x:Name
=
"OutwardTextSPState"
Width
=
"20"
TextAlignment
=
"Center"
>
<
TextBlock.Style
>
<
Style
TargetType
=
"TextBlock"
BasedOn
=
"{StaticResource SmallFontStyle}"
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"TOTELETRANSMIT"
>
<
Setter
Property
=
"Text"
Value
=
"ÀT"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"À TÉLÉTRANSMETTRE"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource HighlightBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"TELETRANSMITED"
>
<
Setter
Property
=
"Text"
Value
=
"T"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"TÉLÉTRANSMISE"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource GreenBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"TOVALIDATE"
>
<
Setter
Property
=
"Text"
Value
=
"ÀV"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"À VALIDER"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource RedBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"PRINTED"
>
<
Setter
Property
=
"Text"
Value
=
"I"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"IMPRIMÉE"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource AlternateGreenBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"TOPRINT"
>
<
Setter
Property
=
"Text"
Value
=
"ÀI"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"À IMPRIMER"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource YellowBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"PAID"
>
<
Setter
Property
=
"Text"
Value
=
"P"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"PAYÉE"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource PurpleBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"PARTIALLYPAID"
>
<
Setter
Property
=
"Text"
Value
=
"PP"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"PAYÉE PARTIELLEMENT"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource VeryLightPurpleBackgroundBrush}"
/>
</
DataTrigger
>
<
DataTrigger
Binding
=
"{Binding Statut}"
Value
=
"CREDIT"
>
<
Setter
Property
=
"Text"
Value
=
"A"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"CREDIT"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource BlueGreenBackgroundBrush}"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
TextBlock.Style
>
</
TextBlock
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
""
Width
=
"auto"
DataMemberBinding
=
"{Binding Number}"
IsReadOnly
=
"True"
/>
<
telerik:GridViewDataColumn
Header
=
"Nom/Prénom"
Width
=
"auto"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding CustomerFullName}"
IsReadOnly
=
"True"
/>
<
telerik:GridViewDataColumn
Header
=
"Date"
Width
=
"auto"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding Date, StringFormat={}{0:dd/MM/yyyy}}"
IsReadOnly
=
"True"
SortingState
=
"Ascending"
/>
<
telerik:GridViewDataColumn
Header
=
"Montant"
Width
=
"auto"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding Amount, StringFormat={}{0:C}}"
IsReadOnly
=
"True"
/>
<
telerik:GridViewDataColumn
Header
=
"Trajet"
Width
=
"*"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding Trip}"
IsReadOnly
=
"True"
/>
<
telerik:GridViewDataColumn
Header
=
"Vehicule"
Width
=
"auto"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding Vehicle}"
IsReadOnly
=
"True"
/>
<
telerik:GridViewDataColumn
Header
=
"Raison"
Width
=
"auto"
MinWidth
=
"100"
DataMemberBinding
=
"{Binding Reason}"
IsReadOnly
=
"True"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.GroupDescriptors
>
<
telerik:ColumnGroupDescriptor
Column
=
"{Binding Columns[\MarketName\], ElementName=GridViewListingNumberList}"
/>
<
telerik:ColumnGroupDescriptor
Column
=
"{Binding Columns[\PayerName\], ElementName=GridViewListingNumberList}"
/>
<
telerik:ColumnGroupDescriptor
Column
=
"{Binding Columns[\PeriodicityName\], ElementName=GridViewListingNumberList}"
/>
<
telerik:ColumnGroupDescriptor
Column
=
"{Binding Columns[\MarketBatchName\], ElementName=GridViewListingNumberList}"
/>
<
telerik:ColumnGroupDescriptor
Column
=
"{Binding Columns[\CompanyName2\], ElementName=GridViewListingNumberList}"
/>
</
telerik:RadGridView.GroupDescriptors
>
</
telerik:RadGridView
>
v.2018.1.220.45
Any Idea ?
thanks.
https://i.imgur.com/XGtKWeK.png
here , a gif of the issue : https://imgur.com/a/mNGwYA7