After deserialization Cyrillic is displayed as unknown characters, could you suggest how to fix it?
public void diagram_ShapeDeserialized(object sender, Telerik.Windows.Controls.Diagrams.ShapeSerializationRoutedEventArgs e)
{
try
{
if (e.Shape is FunctionShape)
{
FunctionShape shape = e.Shape as FunctionShape;
if (e.SerializationInfo["DisplayName"] != null)
shape.DisplayName = e.SerializationInfo["DisplayName"].ToString();
}
}
}
For example, this function
<FunctionItem>
<DisplayName>ИЛИ</DisplayName>
<FunctionName>OR</FunctionName>
<InputCount>2</InputCount>
<OutputCount>1</OutputCount>
<Code>//OR Gate
IN(data0)
OR(data1)
OUT(out0)
</Code>
<FunctionType>Logic</FunctionType>
<LeftEdge>0</LeftEdge>
<RightEdge>1</RightEdge>
<Data>M 281,290L 319,290C 319.552,290 320,289.552 320,289L 320,251C 320,250.448 319.552,250 319,250L 281,250C 280.448,250 280,250.448 280,251L 280,289C 280,289.552 280.448,290 281,290 Z M 280,260L 270,260M 280,280L 270,280M 320,270L 330,270M 302.569,264.156L 307.476,262.656M 302.493,277.666L 312.288,277.666M 307.455,277.385L 307.455,262.228M 287.814,277.664L 296.856,277.664M 287.731,275.747L 296.819,271.106M 287.814,266.164L 296.788,271.278</Data>
<Width>60</Width>
<Height>40</Height>
<Stroke>#FF000000</Stroke>
<Fill>#FFFF7D00</Fill>
<StrokeThickness>1</StrokeThickness>
<Connectors>
<FunctionItemConnector>
<PinNomber>1</PinNomber>
<X>0</X>
<Y>0.25</Y>
<Direction>Input</Direction>
</FunctionItemConnector>
<FunctionItemConnector>
<PinNomber>2</PinNomber>
<X>0</X>
<Y>0.75</Y>
<Direction>Input</Direction>
</FunctionItemConnector>
<FunctionItemConnector>
<PinNomber>1</PinNomber>
<X>1</X>
<Y>0.5</Y>
<Direction>Output</Direction>
</FunctionItemConnector>
</Connectors>
<Index>3</Index>
</FunctionItem>

Hi,
I need to be able to bind the SelectedItems property of the RadGridView to a ObservableCollection property of my ViewModel. So I use the "MySelectedItemsBindingBehavior" class I found on your sample project called BindingSelectedItemsFromViewModel_WPF (found on github).
I would like to know why in this class, there is a static Attached boolean property.
In fact, if I load the same UserControl twice, only the first one is able to bind correctly its ObservableCollection to the SelectedItems of the RadGridView.
Is there a reason why you added this static boolean?
Thanks in advance
Is it possible to set a Reccurrence Rule so that an appointment could happen every hour for days, but only between like 10am-4pm? I can easily create an hourly pattern that lasts for days, but don't know how to make it only happen between a certain range in a day.
Thanks!
Hi,
I have a column which DataType is TimeSpan, TimeSpans are displayed in military time format("hhmm"), however when user types 2000, filter interprets it as 2000 days 0 hours 0 minutes 0 seconds(2000.00:00:00). Filter checkBoxes also display values in the format specified. How can I make filter parse 2000 as 0.20:00:00?
Is there an easy way to do this?

I want to change the style of selected cell of RadGridView in my WPF form. I found the following style from RadGridView documentation and I used it.
<Style TargetType="{x:Type telerik:GridViewEditorPresenter}"><Setter Property="Template" Value="{StaticResource GridViewEditorPresenterTemplate}"/><Setter Property="Padding" Value="5"/></Style>
However, I got the warning error "Resource GridViewEditorPresenterTemplate is not found."
Do I need to include some assemblies in my xaml file?
Also, in Excel, if I use mouse to select a range of cells, there is a solid black border for all the selected ranges, can we do the same for RadGridView selected cells?
Thanks.
Hi, I am trying to change Enter key bevavior to act like Tab key. I found your documentation and blog post but these are all for the case when grid is in edit mode. My grid looks like this:
01.<telerik:RadGridView Name="Grid"02. Grid.Row="1"03. AutoGenerateColumns="False"04. ItemsSource="{Binding Orders}"05. ShowGroupPanel="False"06. RowIndicatorVisibility="Collapsed"07. BorderBrush="Black"08. Margin="5">09. <telerik:RadGridView.Columns>10. <telerik:GridViewDataColumn Header="Price" Width="150">11. <telerik:GridViewDataColumn.CellTemplate>12. <DataTemplate>13. <telerik:RadNumericUpDown Value="{Binding Price, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>14. </DataTemplate>15. </telerik:GridViewDataColumn.CellTemplate>16. </telerik:GridViewDataColumn>17. 18. <telerik:GridViewDataColumn Header="Volume" Width="*">19. <telerik:GridViewDataColumn.CellTemplate>20. <DataTemplate>21. <telerik:RadNumericUpDown Value="{Binding Volume, Mode=TwoWay, StringFormat=N2, UpdateSourceTrigger=LostFocus}" SmallChange="0.1" LargeChange="1"/>22. </DataTemplate>23. </telerik:GridViewDataColumn.CellTemplate>24. </telerik:GridViewDataColumn>25. </telerik:RadGridView.Columns>26. </telerik:RadGridView>
And my custom keyboard command provider looks like this:
01.public class CustomKeyboardCommandProvider : DefaultKeyboardCommandProvider02. {03. public CustomKeyboardCommandProvider(GridViewDataControl grid) : base(grid)04. {05. }06. 07. public override IEnumerable<ICommand> ProvideCommandsForKey(Key key)08. {09. if (key == Key.Enter)10. {11. var tabCommands = base.ProvideCommandsForKey(Key.Tab).ToList();12. 13. return tabCommands;14. }15. 16. return base.ProvideCommandsForKey(key).ToList();17. }18. }
Is there a way how to do it for my case?
Thank you.
Karel