Telerik Forums
UI for WPF Forum
4 answers
181 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
392 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
298 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
194 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
180 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
96 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
339 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
265 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
1 answer
129 views
Hello all

We used Q1 radcontrols.  In RadGridView 
while i click on GridView Header it call mouse bouble click event
I want to handle mouse double click event when click on Datagrid header


Thanks in advance


Pavel Pavlov
Telerik team
 answered on 28 Dec 2009
5 answers
166 views
Hi

I have a RadTreeView with several items, as shown here:

http://tinypic.com/view.php?pic=29m6sxs&s=5

Is there a way to change the RadTreeViewItem's highlighting yellow selection bar to not span across until the end of the tree view, but to end when where the tree view item's label ends?

The TreeView may get quite wide so I don't want the selection highlight to span until the rightmost portion of it, so ideally it would span from the beginning of the item until the end of the item.

Many thanks
Bobi
Telerik team
 answered on 28 Dec 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?