Telerik Forums
UI for WPF Forum
1 answer
225 views

So you guys flag projects by XAML and no XAML so when an upgrade is done you know which files to use.

How can one switch a project from one to the other though so the upgrade extension is aware which one you are trying to do.

Specifically I have two projects that are flagged incorrectly.

the upgrade occurs and the reference to the theme  is removed.

I then have to manually find the themes folder and add a reference.

 

Nikola
Telerik team
 answered on 23 Jun 2017
1 answer
376 views

I have been trying to create a custom filter control and I am running into issues.

 

It seems that even when writing a custom filter, the decision of whether a row will be filtered in or out is based on one or more FilterDescriptors, which basically only take in the name of the data field, one of a set of predefined operators, and the value to compare the value in the data field to.

 

Is there any way to define our own logic for whether a row will pass the filter? Any way to write in a function that will take in the row item, and let us create more complex logic than what is given out-of-the-box?

Martin Ivanov
Telerik team
 answered on 23 Jun 2017
3 answers
700 views
Is there any way to set the PieChart slice colors from code behind?  I know how to do it with other chart styles (i.e. for line charts .. I use <series>.Definition.Appearance.Stroke/Fill).  But when you use that same idea for pie charts, all the slices are the same color.  Which I expect since I've only got one series.

            var series = new DataSeries { Definition = new PieSeriesDefinition() };
            series.Definition.ShowItemLabels = true;
            series.Add(new DataPoint(_dataList.A, _dataList.A));
            series.Add(new DataPoint(_dataList.B, _dataList.B));

            //series[0].LegendLabel = "Series A";
            //series[1].LegendLabel = "Series B";

            // this is what I do in other charts for each series... but pie charts don't work.
            //series.Definition.Appearance.Stroke = new SolidColorBrush(Colors.Black);
            //series.Definition.Appearance.Fill = new SolidColorBrush(myCustomColor);

            RadChart1.DefaultView.ChartArea.DataSeries.Add(series);

If I change the theme colours in XAML using the StylesPalette, the colors change.  But I really want to change them from code (dynamic when a user control starts up only, not necessarily dynamic while the app is running).   Any ideas?  Could the color of of the Fill property in the Xaml be changed using binding?

            <SolidColorBrush x:Key="RadialItemStroke" Color="#FF000000"/>
            <system:Double x:Key="RadialItemStrokeThickness">2</system:Double>
            <telerikStyling:StylesPalette x:Key="{telerikStyling:ThemeResourceKey
                    ThemeType={x:Type telerikStyling:Office_BlackTheme},
                    ElementType={x:Type telerikStyling:ChartArea},
                    ResourceId={x:Static telerikStyling:ResourceHelper.ResourceKeyRadialStyle}}">
                <Style TargetType="{x:Type Shape}">
                    <Setter Property="Stroke" Value="{StaticResource RadialItemStroke}" />
                    <Setter Property="StrokeThickness" Value="{StaticResource RadialItemStrokeThickness}" />
                    <Setter Property="Fill" Value="{Insert some binding expression here?}" />
                </Style>
                <Style TargetType="{x:Type Shape}">
                    <Setter Property="Stroke" Value="{StaticResource RadialItemStroke}" />
                    <Setter Property="StrokeThickness" Value="{StaticResource RadialItemStrokeThickness}" />
                    <Setter Property="Fill" Value="{Insert some binding expression here?}" />
                </Style>
            </telerikStyling:StylesPalette>

Thanks
Greg
Martin Ivanov
Telerik team
 answered on 23 Jun 2017
2 answers
93 views

Hi,
Can I rotate a group of some RadDiagramShape?

My problem is when I put beside more shapes and I group theme. Afterthat I would rotate a group to 90°

 

Dario Concilio
Top achievements
Rank 2
 answered on 23 Jun 2017
1 answer
155 views

I have multiple charts that share the same x-axis and have the trackballs grouped using chartviewutilities.cs from one of your examples. Everything works as expected when there is no zoom. However as soon as I throw a grouped zoom and pan into the mix the trackballs get out of sync. The further I zoom the more out of sync they become. How can i resolve this? 

Here is my charts xaml:

   <telerik:RadCartesianChart Margin="0,17,0,5" TrackBallInfoStyle="{StaticResource trackBallInfoStyle}" TrackBallLineStyle="{StaticResource trackBallLineStyle}" utils:ChartViewUtilities.ChartAlignmentGroup="g1" UseLayoutRounding="True" FontFamily="{DynamicResource FontFamilyRoboto}" Zoom="{Binding Zoom, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" PanOffset="{Binding PanOffset, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" MaxZoom="10000,10000">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis SmartLabelsMode="SmartStep" Title="Strip Length (meters)" MajorTickStyle="{StaticResource tickStyle}"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis SmartLabelsMode="SmartStepAndRange" MajorTickStyle="{StaticResource tickStyle}"/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="Y" MajorYLineDashArray="3,4"/>
            </telerik:RadCartesianChart.Grid>
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" PanMode="Horizontal" />
                <telerik:ChartTrackBallBehavior ShowIntersectionPoints="True" 
                                                    utils:ChartViewUtilities.ShouldPositionTrackBallCloseToDataPoint="False"
                                                    utils:ChartViewUtilities.TrackBallGroup="g1" TrackInfoUpdated="ChartTrackBallBehavior_TrackInfoUpdated"/>
            </telerik:RadCartesianChart.Behaviors>
            <telerik:LineSeries x:Name="SteelDNALineSeries" CategoryBinding="Position" 
                                        ValueBinding="Value" 
                                        ItemsSource="{Binding Trace, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ParameterTraceControl}}}"
                                        TrackBallTemplate="{StaticResource SteelDNATrackBallTemplate}" Stroke="{Binding RandomColor, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type View:MainWindow}}}" StrokeThickness="1"
                                        utils:ChartAnimationUtilities.CartesianAnimation="Rise"/>
        </telerik:RadCartesianChart>

 

and attached are what happens...

Martin Ivanov
Telerik team
 answered on 23 Jun 2017
7 answers
130 views
Hello,
After using ScaleTransform to scale up the UI of our application the Compass and VisualCue elements are clipped to, what seems to be, the unscaled size of the RadDocking control.

I am scaling the application by adding
<Grid.LayoutTransform>
            <ScaleTransform ScaleX="1.5" ScaleY="1.5" />
</Grid.LayoutTransform>

to the root element of the main window and setting the compass and visualcue scaling with
<telerikDocking:RadDocking.CompassStyle>
    <Style TargetType="telerik:Compass">
        <Setter Property="LayoutTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="1.5" ScaleY="1.5"/>
            </Setter.Value>
        </Setter>
    </Style>
</telerikDocking:RadDocking.CompassStyle>
<telerikDocking:RadDocking.RootCompassStyle>
    <Style TargetType="telerik:RootCompass">
        <Setter Property="LayoutTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="1.5" ScaleY="1.5" />
            </Setter.Value>
        </Setter>
    </Style>
</telerikDocking:RadDocking.RootCompassStyle>
<telerikDocking:RadDocking.VisualCueStyle>
    <Style TargetType="telerik:VisualCue">
        <Setter Property="LayoutTransform">
            <Setter.Value>
                <ScaleTransform ScaleX="1.5" ScaleY="1.5" />
            </Setter.Value>
        </Setter>
    </Style>
</telerikDocking:RadDocking.VisualCueStyle>

You can see the result in the attached image.
Are there other elements of the RadDocking control which I didn't set the scaling for, or am I approaching the whole scaling the wrong way ?
Stefan
Telerik team
 answered on 22 Jun 2017
3 answers
320 views

Hi,

I have a LocalDataSourceProvider bound to a DataTable. Some of the columns allow nulls and some of the values in them are DBNull. I would like to be able to display a count of the values that aren't null. I've created my own aggregate function and I can add that to some of my AggregatePropertyDescriptions programmatically. I do have an example, but apparently I'm only allowed to upload images.

The questions I've got are:

Is there any easier way to do this?

Can I make this aggregate function appear in the UI in the Field List, so users can select it?

I only appear to be able to apply this to my nullable int property, and not my string property. Is that something I should be expecting?

Many thanks,

Richard

Grinden
Top achievements
Rank 1
 answered on 22 Jun 2017
2 answers
155 views

Hi, I got the code from http://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/scroll-item

 

My code :

when DropRowIndex = 16 and the items.count=17 , it calls the scrollFailedCallback , I tried to make it this.timetableGrid.Items[this.timetableGrid.Items.Count -1] and it still fails. WHy? My items count is 17 so it should not be failing. I hardcoded it into DropRowIndex = 15 and it is calling scrollFinishedCallback which is what I want to happen. May I ask why rowindex 16 is not working ?

if (this.timetableGrid.Columns.Count > 0 && DropColIndex <= this.timetableGrid.Columns.Count)
            {
                IsScrollBarForceIntoView = false;
                int offsetCol = 0; int offsetRow = 0;
                if ((DropColIndex + 3) <= (this.timetableGrid.Columns.Count - 1))
                    offsetCol = 3;
                if ((DropRowindex + 3) <= (this.timetableGrid.Items.Count - 1))
                    offsetRow = 3;
                this.timetableGrid.ScrollIntoViewAsync(this.timetableGrid.Items[DropRowindex + offsetRow], //the row
                                this.timetableGrid.Columns[DropColIndex + offsetCol], //the column
                                 new Action<FrameworkElement>((f) =>
                                  {
                                      App.MainWindow.IsBusy = false;
                                  }), new Action ( ()=>
                                      {
                                          App.MainWindow.IsBusy = false;
                                      }
                                    ));
                isDrop = false;
            }
            else
            {
                App.MainWindow.IsBusy = false;
                DropColIndex = 0;
            }

Ivan Ivanov
Telerik team
 answered on 22 Jun 2017
1 answer
110 views

I used all resource string files for RadPivotGrid, but the message "Blank" could not find the key for translation. What is the procedure for translating this message?

I have a test project demonstrating the problem but I am not allowed to post

Martin Ivanov
Telerik team
 answered on 21 Jun 2017
3 answers
139 views
Hi,

are there any telerik graficle control templates for Storyboarding with VS 2012 in Powerpoint evailable or sceduled?

reagards
Dilyan Traykov
Telerik team
 answered on 21 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?