Telerik Forums
UI for WPF Forum
1 answer
704 views

in the Resources i define the text format for TimelineItemTemplate

<DataTemplate x:Key="ItemWithDurationTemplate">

<TextBlock  Foreground="Black" FontFamily="Segoe UI" FontSize="12"  Text="{Binding  Path=DataItem.recognitions}">

</DataTemplate >

TimelineItemTemplate="{StaticResource ItemWithDurationTemplate}"

How can I change the font size when the mouse  is scrolling?

Shoule i use the Radtimeline_MouseWheel event?

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Mar 2019
3 answers
115 views

Hi,

I've a performance problem with the charts.
Background:

- It's a C# / WPF application mit MVVM Pattern
- Variable amount of Lines Series. My test scenario was with 15 Lines.
- Amount of datapoints of each line: First scenario = 2.000, Second Scenarion 20.000
- Horizontal Axes = DateTime
- Approx time to show the chart: First scenario around 2 seconds, Second Scenarion around 10 - 15 seconds

You can find my XAML Code attached.

How can I improve the performance ?
It can be that a value is the same over a time. For now I have for example for every 15Minutes a point. Even if it's the same value over the whole day.
Is it possible to define one point and to say that it is the same for x hours instead of have hundreds of points ?


Regards
Stefan




Martin Ivanov
Telerik team
 answered on 27 Mar 2019
1 answer
133 views

Hello. I want to use GridView for editing dependable combbox.
For examle I select Club from list in first ComboBox in Grid and after select players of this Club.
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" 
                                                ItemsSource="{Binding ClubList}" Width="120" IsReadOnly="False" Header="St Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PlayerName, Mode=TwoWay}" 
                                                ItemsSource="{Binding PlayerList}" Width="120" IsReadOnly="False" Header="Player Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />

I don't understand how to make it work.

        private ObservableCollection<Club> _clubs;
        public ObservableCollection<Club> ClubList
        {
            get
            {
                if (this._clubs == null)
                {
                    this._clubs = Club.GetClubs();
                }

                return this._clubs;
            }
        }

 

Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
1 answer
108 views

Hello I'm trying to add depandable comboboxes to RadGridView and my Comoboxes always empty. What I do wrong? For examle I want to add Club and Players to grid - Select Club and then Select Player from players of this Club

                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" 
                                                ItemsSource="{Binding ClubList}" Width="120" IsReadOnly="False" Header="Club Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />
                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding PlayerName, Mode=TwoWay}" 
                                                ItemsSource="{Binding PlayerList}" Width="120" IsReadOnly="False" Header="Player Name" 
                                                SortMemberPath="Name"
                                                SelectedValueMemberPath="Name" 
                                                IsComboBoxEditable="True"
                                                telerik:TextSearch.TextPath="Name"
                                                DisplayMemberPath="Name"
                />

public class ClubLinks : INotifyPropertyChanged

{

        public string Name
        {
            get { return this.name; }
            set
            {
                if (value != this.name)
                {
                    this.name = value;
                    this.OnPropertyChanged("Name");
                }
            }
        }

        public string PlayerName { get; set; }

        private ObservableCollection<Club> _clubs;
        public ObservableCollection<Club> ClubList
        {
            get
            {
                if (this._clubs == null)
                {
                    this._clubs = Club.GetClubs();
                }

                return this._clubs;
            }
        }

    public ObservableCollection<Player> PlayerList
        {
            get
            {
                if (null == this.players)
                {
                    this.players =
                     new ObservableCollection<Player>()
                        {
                            new Player(){Name = "Pl1_" + name},
                            new Player(){Name = "Pl2_" + name},
                            new Player(){Name = "Pl3_" + name},
                            new Player(){Name = "Pl4_" + name},
                        };
                }

                return this.players;
            }
        }

Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
3 answers
100 views
Hello,

how can i determine the visible daterange wich is currently shown on screen?
I have bound the visibleTime property but when i scroll to a another
section the visibleTime property dosn't change.

Regards,
Robert
Vladimir Stoyanov
Telerik team
 answered on 26 Mar 2019
5 answers
1.8K+ views

I have the following GridView with the questionable checkbox column. Is there any way to add a command to the checkbox IsChecked property, like an event?

The TestCommand is implemented in the viewmodel and it is working well with a button.

 

<telerik:RadGridView x:Name="SelectedStrategyGroup1_Adjustments_GV"
                     Width="233" Height="214" Canvas.Left="2" Canvas.Top="0" RowHeight="22"
                     AutoGenerateColumns="False"
                     ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
                     ItemsSource="{Binding VMAdjustmentCollection1, Mode=TwoWay}"
                     ignore:SourceUpdated="SelectedStrategyGroup1_Adjustments_GV_SourceUpdated"
                     >
 
    <telerik:RadGridView.Columns>
        <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsContained, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Header="S" Width="22" HeaderTextAlignment="Center" TextAlignment="Center" EditTriggers="CellClick" AutoSelectOnEdit="True">
            <telerik:GridViewCheckBoxColumn.CellTemplate>
                <DataTemplate>
                    <CheckBox IsChecked="{Binding IsContained,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                              Command="{Binding Path=TestCommand}"
                              ignore:CommandParameter="{Binding Path=IsChecked, RelativeSource={RelativeSource Self}}"/>
                </DataTemplate>
            </telerik:GridViewCheckBoxColumn.CellTemplate>
        </telerik:GridViewCheckBoxColumn>
...         
    </telerik:RadGridView.Columns>
 
</telerik:RadGridView>

 

Jonathan
Top achievements
Rank 1
 answered on 25 Mar 2019
2 answers
298 views
Hi. I have a RadGridView with column groups. I use a method - ToExcelML for export, but he doesn't support column groups and exports only grid columns. Can there be a way to enable grouping support? Or maybe there is another export method in which there is support for grouping?
Martin Ivanov
Telerik team
 answered on 25 Mar 2019
3 answers
857 views

My end goal is to trigger fading colour animation on a row when any of its data is updated to signal update to the user. To do that, a style was created:

01.<UserControl.Resources>
02.        <stl:EventsTreeRowStyle x:Key="ETRStyle">
03.            ...
04.            <stl:EventsTreeRowStyle.UpdatedStyle>
05.                <Style TargetType="telerik:GridViewRow">
06.                    <Style.Triggers>
07.                        <EventTrigger RoutedEvent="Binding.TargetUpdated">
08.                            <BeginStoryboard>
09.                                <Storyboard>
10.                                    <ColorAnimation Storyboard.TargetProperty="(DataGridRow.Background).(SolidColorBrush.Color)"
11.                                                        Duration="00:00:10"
12.                                                        From="Gold" To="White"/>
13.                                </Storyboard>
14.                            </BeginStoryboard>
15.                        </EventTrigger>
16.                    </Style.Triggers>
17.                </Style>
18.            </stl:EventsTreeRowStyle.UpdatedStyle>
19.        </stl:EventsTreeRowStyle>
20.    </UserControl.Resources>
21.    <Grid>
22.        <telerik:RadTreeListView ItemsSource="{Binding EventsTree}" Style="{StaticResource TelerikTreeListViewStyle}"
23.                                 RowStyleSelector="{StaticResource ETRStyle}">
24.            <telerik:RadTreeListView.ChildTableDefinitions>
25.                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}"/>
26.            </telerik:RadTreeListView.ChildTableDefinitions>
27.            <telerik:RadTreeListView.Columns>
28.                <telerik:GridViewDataColumn Width="4*" DataMemberBinding="{Binding Details}" Header="Details"/>
29.                ...
30.            </telerik:RadTreeListView.Columns>
31.        </telerik:RadTreeListView>
32.    </Grid>

 

However it looks like like Binding.TargetUpdated is never triggered. Is there any other way to do this?

Martin Ivanov
Telerik team
 answered on 25 Mar 2019
2 answers
156 views

WHAT I HAVE:

Currently I have a ganttview where the user can control the time span (Controlled using ###.PixelLength) that is visible in the ganttview window (not the total visibleRange).

WHAT I AM LOOKING TO DO:

I am trying to get a the timespan the user can "see", not scroll through. For instance, if the ganttview covers from 1/3/2015 12:45AM to 4/11/2025 however the graph is zoomed (using PixelLength) such that only a window from, say, 2/2/2017 7:45PM to 2/2/2017 9:56PM is visible. I want to be able to get the timespan associated with 2/2/2017 7:45PM to 2/2/2017 9:56PM not the entire visible range.

MY LAST ATTEMPT

From what I have seen I am only able to generate a IDateRange associated with the ###.VisibleRange.

 

Thanks

Chris
Top achievements
Rank 1
 answered on 25 Mar 2019
3 answers
154 views

We are using the validation IDataErrorInfo in my Gridviews and with the version 2019.1 when the cell that generates the error is hiding with the property isVisible in the xaml, or making the window smaller and hiding the column in which the cell that generates the error is , the error mark  and row color disappears in the rows that generate it.

With the previous versions this did not happen.

I have verified that this courre with the example of the sdk ValidationIDataErrorInfo.

Waiting for a response

Vladimir Stoyanov
Telerik team
 answered on 25 Mar 2019
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?