Telerik Forums
UI for WPF Forum
1 answer
41 views
hello i have the rad gridview in my project and i need too diffrent color for rows

for example 
1 row     Blue
2 row   yello

3 row     Blue
4 row   yello

5 row     Blue
6 row   yello

and....
Missing User
 answered on 29 Dec 2009
3 answers
195 views
I am looking for a way to make the gridview go directly into edit mode when the cell is clicked on.  I also need the up and down arrow to move the selected row/cell
Stefan Dobrev
Telerik team
 answered on 29 Dec 2009
4 answers
145 views
Hello, from what I understood based on the previous threads here, the DragEnter, DragOver, Drop... events from
Ziad
Top achievements
Rank 1
 answered on 29 Dec 2009
3 answers
306 views
I don't know if it is something we are doing wrong or if it the control itself.

When you open several nodes the process hits levels of 40%-50%.

I ran the profiler while viewing the TreeView. It shows that the node expanders are continually refreshing.

I'm deducting that the loading animation begins but does not stop. It looks like the screen is refreshing even in when the animation's visibility is not visible. I don't know if it is a fact that the screen is trying to refresh because of the loading animation, but it seems like it.

In the template, the trigger is defined:

<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard> 
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 

If what I stated above is true, wouldn't you need to add and ExitAction like:
<Trigger Property="IsLoadingOnDemand" Value="True"
                    <Trigger.EnterActions> 
                        <BeginStoryboard> 
                            <Storyboard x:Name="NodeLoadingStoryboard"
                                <DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> 
                            </Storyboard> 
                        </BeginStoryboard> 
                    </Trigger.EnterActions> 
                     
                    <Trigger.ExitActions> 
                        <StopStoryboard BeginStoryboardName="NodeLoadingStoryboard" /> 
                    </Trigger.ExitActions> 
                     
                    <Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> 
                    <Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> 
                </Trigger> 



Have you seen this behavior? Am I missing something?

Thanks


Miroslav
Telerik team
 answered on 28 Dec 2009
3 answers
257 views
I have a stacked area chart set up with multiple series. The source of the data is an observable collection. When I add items to the observable collection, the chart does not update. When I bind the data directly without using multiple series, it updates fine. How can I get this working?

        private ObservableCollection<ChartPoint> _kw1;
        private ObservableCollection<ChartPoint> _kw2;

        private Timer _timer;

        void Window1_Loaded(object sender, RoutedEventArgs e)
        {
            _timer = new Timer(TimerCallback, null,TimeSpan.Zero, TimeSpan.FromSeconds(1));

            RadChart1.DefaultView.ChartArea.AxisX.IsDateTime = true;

            _kw1 = new ObservableCollection<ChartPoint>();

            _kw2 = new ObservableCollection<ChartPoint>();

            var seriesList = new List<ObservableCollection<ChartPoint>> { _kw1, _kw2 };

            var lineDefinition1 = new StackedAreaSeriesDefinition();
            var lineDefinition2 = new StackedAreaSeriesDefinition();

            var series1 = new SeriesMapping { LegendLabel = "Paint Line", CollectionIndex = 0, SeriesDefinition = lineDefinition1 };
            series1.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.YValue, FieldName = "Kw" });
            series1.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.XValue, FieldName = "Timestamp" });

            var series2 = new SeriesMapping { LegendLabel = "Fan 1", CollectionIndex = 1, SeriesDefinition = lineDefinition2 };
            series2.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.YValue, FieldName = "Kw" });
            series2.ItemMappings.Add(new ItemMapping { DataPointMember = DataPointMember.XValue, FieldName = "Timestamp" });

            var seriesMappings = new SeriesMappingCollection {series1, series2};

            RadChart1.SeriesMappings = seriesMappings;
            RadChart1.ItemsSource = seriesList;
        }

        private void TimerCallback(object o)
        {
            Debug.WriteLine("Updating...");

      if(!Dispatcher.CheckAccess())
      {
                Dispatcher.Invoke(new ThreadStart(() => TimerCallback(null)));
          return;
      }

            _kw1.Add(new ChartPoint{ Kw = (new Random()).Next(0, 10), Timestamp = DateTime.Now});
            _kw2.Add(new ChartPoint { Kw = (new Random()).Next(0, 10), Timestamp = DateTime.Now });
        }
Velin
Telerik team
 answered on 28 Dec 2009
4 answers
163 views
Are there any plans to port the RadRotator control (my favourite) to WPF or SilverLight? I'm relatively new to WPF, so maybe there's a methodology for easily re-creating this effect that I am not familiar with.
Art Kedzierski
Top achievements
Rank 2
 answered on 28 Dec 2009
1 answer
135 views
Hi,
I have docking panes and would like to resize the left panel panel when I resize the form. Now, it's only possible to resize the middle pane.

How can I accchieve that ?

kind regards,

Lorenz
Miroslav Nedyalkov
Telerik team
 answered on 28 Dec 2009
1 answer
68 views
Hello,

I'm using telerik 2008 (Version : 2008.3.1217.35, and I can't upgrade in telerik 2009 Q3), when I click on the Clear Filter function in filter expression, if my column contains no elements, I have an ArgumentNullException.

How can I catch this exception, or avoid it.

Thanks
Rossen Hristov
Telerik team
 answered on 28 Dec 2009
2 answers
284 views
I'd like to be able to select all content of the InputBox of a DatePicker, instead of simply putting the caret at the beggining. Is this possible ?

Thanks,

Ivan
Boyan
Telerik team
 answered on 28 Dec 2009
1 answer
230 views
hi,

I have the following wpf
<Telerik:RadGridView   
            Margin="5" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1"   
            SelectionMode="Single" 
            ItemsSource="{Binding Mode=TwoWay, Path=CurrentCOAContext.Values, UpdateSourceTrigger=PropertyChanged}" 
            SelectedItem="{Binding Mode=TwoWay, Path=CurrentCOAContext.Values.CurrentItem, UpdateSourceTrigger=PropertyChanged}" 
            CurrentItem="{Binding Mode=TwoWay, Path=CurrentCOAContext.Values.CurrentItem, UpdateSourceTrigger=PropertyChanged}" 
            x:Name="GridViewHistory"   
            AutoGenerateColumns="False"
In this code I am expectinting to be visually updated the grid with the value of CurrentItem. But unfortunately it is not shows the row indicator to that row nor the selection. I tried to bind SelectedItem and CurrentItem members independently, but resulting same.

Are there any way to do this ? Because I am fully concentrated to update the visuals with the underlying data (I think that's the best practice of WPF), so I don't want to break this rule with extraordinary codes.

(My version is 2009.3.1208)

thanks,
dogu
Rossen Hristov
Telerik team
 answered on 28 Dec 2009
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?