Telerik Forums
UI for WPF Forum
1 answer
113 views

Hi,

What is a way to add custom connection properties? How can i serializing this custom connection properties.

For example i want to add MyCustomCode:string property to connection.

Martin Ivanov
Telerik team
 answered on 22 Sep 2015
11 answers
554 views
I'm using auto generating for a object which has a property of type string[].
the 'add' and 'delete' button are grayed out.
I tried to change the property type to List<string> and 'delete' would be usable but 'add' still not.
Could you give me some example of how to enable the full functionality of collection editor?>


The property definition in the object bind to RadPropertyGrid:

        string[] _mdAddresses;
        public string[] MdAddresses
        {
            get { return _mdAddresses; }
            set { _mdAddresses = value; }
        }

Stefan
Telerik team
 answered on 21 Sep 2015
3 answers
83 views

Hi, 

I have the following problem: 

If you shrink a container (by dragging with the mouse from one of the container corners), that is in a group with its content, both the container and its content is shrinking.
{See Pic1}

Unfortunately, you can shrink the container only as small as the content was before the start of the shrink operation.
{See Pic2}

This behavior seems to be ok if the content do not shrink with the container because of the container should not be smaller as its content.
But why do the shrink operation stops if the content is shrinking too?

Regards,

Kiril Vandov
Telerik team
 answered on 21 Sep 2015
4 answers
784 views

I have RadCartesianChart and i am create the AreaSeries view code behind:

RadCartesianChart chart = new RadCartesianChart();
chart.HorizontalAxis = new CategoricalAxis();
chart.VerticalAxis = new LinearAxis();
chart.HorizontalAxis.Visibility = System.Windows.Visibility.Collapsed;
chart.VerticalAxis.Visibility = System.Windows.Visibility.Collapsed;
 
// Get the style
Style smartLabelStyle = (Style)this.Resources["labelStyle"];
 
// Create new labelDefinition and set its DefaultVisualStyle property
ChartSeriesLabelDefinition labelDefinition = new ChartSeriesLabelDefinition()
            {
                DefaultVisualStyle = smartLabelStyle,
                Format = "{0:N2}",
                Margin = new Thickness(-40, 0, 0, 0)
            };
 
MyInstanse = new AreaSeries(); // this is my series
MyInstanse .ShowLabels = true;
MyInstanse .LabelDefinitions.Add(labelDefinition);
 
chart.Series.Add(MyInstanse);
 
And this is my XAML label style:
 <Style x:Key="labelStyle" TargetType="TextBlock">
   <Setter Property="Foreground" Value="Gainsboro" />
   <Setter Property="Background" Value="Transparent" />
</Style>

So all i want to add is border around my Label like in this example:

 http://docs.telerik.com/devtools/wpf/controls/radchartview/features/labels/smart-labels.html

 

Martin Ivanov
Telerik team
 answered on 21 Sep 2015
3 answers
652 views
With standard WPF TabControl it's possible changing tab using standard keyboard shortcut CTRL+TAB to move next and CTRL+SHIFT+TAB to move backward.

Is it possible to do the same with RadTabControl ?

Thanks,

Ivan
Martin Ivanov
Telerik team
 answered on 18 Sep 2015
3 answers
944 views

I've been using some usefull telerik controls for a while, at this point I'm adding some more options voor accessibility to my applications. Narrator or other screen readers are able to read AutomationProperties like Name and HelpText. But when setting these properties on the RadRichTextBox they are not reqognized by windows and the applications reading the AutomationProperties (tool to check: Inspect)

The AutomationMode of the Telerik AutomationManager is already set to FrameworkOnly. When something else is selected all my automationproperties on controls are ignored.

Here is the used xaml:

01.<telerik:RadRichTextBox HorizontalAlignment="Stretch"
02.                        VerticalAlignment="Stretch"
03.                        x:Name="radRichTextBox"
04.                        BorderThickness="0"
05.                        Margin="0,2,0,0"
06.                        DocumentInheritsDefaultStyleSettings="True"
07.                        Focusable="True"
08.                        FontSize="13"
09.                        FontFamily="Segoe UI"
10.                        AutomationProperties.Name="Message for chat">
11.    <i:Interaction.Behaviors>
12.        <behaviors:TelerikRichTextBoxOptionsBehavior />
13.        <behaviors:ChatRadTextBoxBehavior />
14.    </i:Interaction.Behaviors>
15.    <telerik:RadRichTextBox.InputBindings>
16.        <KeyBinding Modifiers="Control"
17.                    Key="Tab"
18.                    Command="{Binding Path=DataContext.NextTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
19.        <KeyBinding Modifiers="Control+Shift"
20.                    Key="Tab"
21.                    Command="{Binding Path=DataContext.PreviousTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
22.    </telerik:RadRichTextBox.InputBindings>
23.</telerik:RadRichTextBox>
24.<telerik:TxtDataProvider x:Name="TextDataProvider"
25.                         Text="{Binding PlainContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
26.                         RichTextBox="{Binding ElementName=radRichTextBox}"  />

Any suggestions how I can fix this or about what I'm doing wrong?

Boby
Telerik team
 answered on 18 Sep 2015
3 answers
231 views
I am trying to use ItemTemplateSelector for RadOutlookBar because I want the selected Item to ​look different from the non selected. Using ItemTemplate works fine but when I use an ItemTemplateSelector the constructor for ​​that custom DataTemplateSelector is called but method SelectTemplate is never called. I am using Version 2013.3.1316.45.
Peshito
Telerik team
 answered on 18 Sep 2015
1 answer
112 views

Hello,

Does the GanttView control have a provision for undo/redo functionality? If no, is it in the pipeline?

 

Cheers,

Charles

Polya
Telerik team
 answered on 18 Sep 2015
8 answers
191 views
I am trying to check whether Telerik chart Is the best chart for me.
I wrote a small application which shows 1000 line graphs with around 1000 points on each graph.
My performance is really lousy.
Did anyone ever tried to this ?

My Mapping is done like this:
            RadChart1.DefaultView.ChartArea.EnableAnimations = false;
            RadChart1.DefaultView.ChartArea.EnableTransitionAnimations = false;
            RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 100;
           
            
            RadChart1.DefaultView.ChartLegend.MaxWidth = 100;
            LineSeriesDefinition lineSeriesDefinition = new LineSeriesDefinition();
            lineSeriesDefinition.ShowItemLabels = false;
            lineSeriesDefinition.ShowPointMarks = false;
            lineSeriesDefinition.ShowItemToolTips = false;
            ItemMapping itemMappingX = new ItemMapping();
            itemMappingX.DataPointMember = DataPointMember.XValue;
            itemMappingX.FieldName = "DoubleData";
            ItemMapping itemMappingY = new ItemMapping();
            itemMappingY.DataPointMember = DataPointMember.YValue;
            itemMappingY.FieldName = "DoubleData2";
            
            for (int i = 0; i < multiObservableCollection.Count; i++)
            {
                SeriesMapping seriesMapping = new SeriesMapping();
                seriesMapping.CollectionIndex = i;
                seriesMapping.SeriesDefinition = lineSeriesDefinition;
                seriesMapping.ItemMappings.Add(itemMappingX);
                seriesMapping.ItemMappings.Add(itemMappingY);

                this.RadChart1.SeriesMappings.Add(seriesMapping);
                Console.WriteLine(String.Format("Adding series {0}", i+1));
                
            }
Stef
Telerik team
 answered on 18 Sep 2015
4 answers
206 views
I Think there is a Bug in RadNumericUpDown

I have an ErrorTemplate that shows an Info popup when the Control is focused, it dont works with the RadNumericUpDown.

IsFocused is always false.
Kalin
Telerik team
 answered on 18 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?