Hellp
In the previous post I asked a question and got an answer..
But there was a problem.
It is related to number 1. ( https://www.telerik.com/forums/is-a-custom-color-picker-possible )
It runs fine until the build is successful and I start debugging and finish.
Using <Setter Property = "local : CustomColorPickerOpenBehavior"Value = "True"/> crashes the designer.
Where xaml designer Exception was thrown.
InvalidOperationException: Sequence contains no matching element
Deleting the CustomColorPickerOpenBehavior property shows the xaml designer.
If the property is created again, an exception occurs.
What is the problem?
Thanks.
<Style TargetType="telerik:RadColorPicker" BasedOn="{StaticResource RadColorPickerStyle}">
<Setter Property="Padding" Value="5" />
<Setter Property="SplitButtonStyle">
<Setter.Value>
<Style TargetType="telerik:RadSplitButton" BasedOn="{StaticResource RadSplitButtonStyle}">
<Setter Property="mat:MaterialAssist.FocusBrush" Value="Transparent"/>
<Setter Property="mat:MaterialAssist.MouseOverBrush" Value="Transparent"/>
<Setter Property="behaviour:ColorPickerButtonSync.IsEnabled" Value="True" />
<Setter Property="IsChecked" Value="{Binding IsDropDownOpen, RelativeSource={RelativeSource AncestorType=telerik:RadColorPicker}}" />
</Style>
</Setter.Value>
</Setter>
</Style><telerik:RadColorPicker Width="70" SelectedColor="Red" IsRecentColorsActive="True">
<telerik:RadColorPicker.ContentTemplate>
<DataTemplate>
<Rectangle Width="35" Height="25"
Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadColorPicker}},
Path=SelectedColor, Converter={StaticResource mediaToBrushConverter}}" />
</DataTemplate>
</telerik:RadColorPicker.ContentTemplate>
<telerik:RadColorPicker.AdditionalContent>
<ContentControl HorizontalContentAlignment="Stretch" Content="{Binding}" >
<ContentControl.ContentTemplate>
<DataTemplate>
<Grid>
<telerik:RadButton Height="26" BorderThickness="0"
HorizontalContentAlignment="Left"
Command="{Binding OnClickOpenEditColorsCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type telerik:RadColorPicker}}}"
>
<telerik:RadButton.Content>
<TextBlock Text="More Colors..." Margin="26 0 0 0" />
</telerik:RadButton.Content>
</telerik:RadButton>
</Grid>
</DataTemplate>
</ContentControl.ContentTemplate>
</ContentControl>
</telerik:RadColorPicker.AdditionalContent>
</telerik:RadColorPicker>
public class ColorPickerButtonSync
{
public static bool GetIsEnabled(DependencyObject obj)
{
return (bool)obj.GetValue(IsEnabledProperty);
}
public static void SetIsEnabled(DependencyObject obj, bool value)
{
obj.SetValue(IsEnabledProperty, value);
}
public static readonly DependencyProperty IsEnabledProperty =
DependencyProperty.RegisterAttached("IsEnabled", typeof(bool), typeof(ColorPickerButtonSync), new PropertyMetadata(false, new PropertyChangedCallback(OnIsEnabledChanged)));
private static void OnIsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var button = d as RadSplitButton;
button.IsToggle = true;
button.Loaded += Button_Loaded;
button.Checked += SplitButton_Checked;
button.Unchecked += SplitButton_Unchecked;
button.DropDownOpened += Button_DropDownOpened;
button.DropDownClosed += Button_DropDownClosed;
}
private static void Button_Loaded(object sender, RoutedEventArgs e)
{
var splitButton = sender as RadSplitButton;
var colorSelector = splitButton.DropDownContent as RadColorSelector;
colorSelector.Loaded += (s, a) =>
{
var rootElement = colorSelector.ChildrenOfType<Grid>().First(x => x.Name == "RootElement");
Grid.SetRow(rootElement.Children[1], 4);
Grid.SetRow(rootElement.Children[2], 5);
Grid.SetRow(rootElement.Children[3], 6);
Grid.SetRow(rootElement.Children[4], 1);
Grid.SetRow(rootElement.Children[5], 2);
Grid.SetRow(rootElement.Children[6], 3);
};
var dropDownPart = splitButton.ChildrenOfType<RadToggleButton>().First(x => x.Name == "DropDownPart");
var rectangle = splitButton.ChildrenOfType<Rectangle>().First(x => x.Name == "Separator");
//System.InvalidOperationException: 'Sequence contains no matching element'
dropDownPart.Visibility = Visibility.Collapsed;
rectangle.Visibility = Visibility.Collapsed;
}
private static void Button_DropDownClosed(object sender, RoutedEventArgs e)
{
var splitButton = sender as RadSplitButton;
splitButton.IsChecked = false;
}
private static void Button_DropDownOpened(object sender, RoutedEventArgs e)
{
var splitButton = sender as RadSplitButton;
splitButton.IsChecked = true;
}
private static void SplitButton_Checked(object sender, RoutedEventArgs e)
{
var splitButton = sender as RadSplitButton;
var colorPicker = splitButton.ParentOfType<RadColorPicker>();
colorPicker.IsDropDownOpen = true;
}
private static void SplitButton_Unchecked(object sender, RoutedEventArgs e)
{
var splitButton = sender as RadSplitButton;
var colorPicker = splitButton.ParentOfType<RadColorPicker>();
colorPicker.IsDropDownOpen = false;
}
}
how to display image from arcgis server which provider i have to used ?
i want display one image not many tiles from arcgis server
a)tilemadsource,
b)imagemapsource,
c)UriImageProvider
d)another?
please i want a code.
I want to display attached properties in PropertyGrid.
How to.

Hi there,
I select the complete text of my RadRichTextBox by code and also want to show the Selection Mini Tool Bar also by code?
Any ideas how to do so?
Actual this only shows up when the selection was done by mouse.
Thank you, Andi

Dear sir,
I am using the Rad Cartesian Chart control in my project.
ItemSource is bounded to a Chart Data that is an Observable Collection.
The value X value (Category ) is the time and Y is value of the data (element that is set to sinuses )
The Chart Data is cleared every 20 sec - a cycle and the new data is add from time=0 re-plotting.
In some scenarios (Such as dragging of an element on screen) an additional series is plotted where y= const.
Once the cycle is competed all lines are cleared and a new plot starts with no problem.
Adding values to Chart Data and clearing it is all by the UI thread.
Do you have a idea for what may cause this?
I am attaching screen shots hope this will c
Thank you,
Harel Sarit
Hello,
Issue when adding columns and aggregate functions programmatically. Version 2019.2
The Group Footer aggregate function works as expected, but when I try to add formatting, it fails.
e.g. if the sum total is 100, the value in the footer appears as "N"
I've tried different format strings - always the same result - what am I doing wrong ?
var c = new GridViewDataColumn
{
Header = columnField.ColumnHeader,
MinWidth = 100,
DataMemberBinding = new Binding(columnField.ColumnName) { StringFormat = columnField.FormatString },
UniqueName = columnField.ColumnName
};
var sumFunction = new SumFunction() { SourceFieldType = Type.GetType("System.Decimal"), ResultFormatString="N" };
c.AggregateFunctions.Add(sumFunction);
Hello,
I'm using your provided method to manipulate the connector positions in MVVM:
https://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/raddiagrams-mvvm#bind-the-source-and-target-connector-positions-of-the-connection
In my RadDiagram, I am using the RoutedConnections-Property for the auto routing mechanism as described here:
https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/routing
With the OrgTreeRouter:
var router = new OrgTreeRouter() { TreeLayoutType = TreeLayoutType.TreeRight, ConnectionOuterSpacing = 20,}; _ctlDiagram.RoutingService.Router = router;
I am setting the Route-Property for the specific RadDiagramConnection to False, but nothing happens...
Only if I disable the RoutedConnections-Property, I can achieve the behaviour I want, but then the connections are no longer routed at all.
I attach two screenshots to help you to understand my issue.
Can you help me with that?
regards,
Tobias
in order to allow the user select the text in the select box and copy it to his clipboard.
We're having a problem that the text cleans up immediately after selection
the code look like:
<telerik:RadComboBox SelectedItem="{Binding ...}" DisplayMemberPath="Name" IsEditable="True"
SelectAllTextEvent="GotFocus" isTextSearchEnabled="False"...>
We try to change SelectAllTextEvent="GotFocus" to SelectAllTextEvent="None"
But that did not solve the problem.

after the last published version of telerik libraries I have a problem with the radmap control.
Before I was able to add providers by programming in behind code (radmap.providers.add ...), now I have a problem(nothing change in code only dlls telerik) and it crashes my applications. When adding provider to a control, radmap gets "Invalid input string format" error
I used this method because I change the url in the provider and in order to refresh the content of a given provider I had to delete it earlier and add it soon.
my provider base on UriImageProvider.
before last version of telerik i had and worked url of provider for example: "http://server:port/arcgis/rest/services/test/MapServer/export?bbox=23.4333229064942,52.1333826707921,23.8082803998675,52.0174907373669&size=2184.28571428571,1098.42857142857&imageSR=3857&format=png&transparent=true&dpi=96&dynamicLayers=%5b%7b%22source%22%3a%7b%22type%22%3a+%22mapLayer%22%2c%22mapLayerId%22%3a+44%7d%2c%22drawingInfo%22%3a%7b%22showLabels%22%3a+False%7d%7d%2c%5d&f=image"
now its problem
how to update my provider after add to radmap?
Is there currently another way to add provider and change the url in the provider and refresh on the map?
How to display image from arcgis server which provider i have to used ?tilemadsource,imagemapsource,UriImageProvider maybe another?