Telerik Forums
UI for WPF Forum
3 answers
210 views
Hi

RadMenu has animation bug. When mouse move throw top level menu line, the dropdown menu first appear, than disaper and then animated scrolldown. There are some blicking effect.

And now we are turn off animation.

<Window x:Class="MenuSample.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadMenu VerticalAlignment="Top" x:Name="mainMenu">
            <telerik:RadMenuItem Header="File">
                <telerik:RadMenuItem Header="Menu1"/>
                <telerik:RadMenuItem Header="Menu2"/>
                <telerik:RadMenuItem Header="Menu3"/>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Header="View">
                <telerik:RadMenuItem Header="Menu1"/>
                <telerik:RadMenuItem Header="Menu2"/>
                <telerik:RadMenuItem Header="Menu3"/>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Header="Help">
                <telerik:RadMenuItem Header="Menu1"/>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Header="Help2">
                <telerik:RadMenuItem Header="Menu1"/>
                <telerik:RadMenuItem Header="Menu2"/>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Header="Help3">
                <telerik:RadMenuItem Header="Menu1"/>
                <telerik:RadMenuItem Header="Menu2"/>
                <telerik:RadMenuItem Header="Menu3"/>
            </telerik:RadMenuItem>
        </telerik:RadMenu>
    </Grid>
</Window>



Rosen Vladimirov
Telerik team
 answered on 31 Jul 2012
2 answers
129 views
Hello!
In my project I've got task, to make aggregation function for all groups in RadGridView at one column, but only in one group for other column.
In example groups: ChocoBars, Lolypops, Cakes have to aggregate with SumFunction SourceField="Quantity", but groups: Popcorn, Nuts, Candies have to aggregate with SumFunction SourceField="Weight"

Is there any possibility to do that?
Kind regards,
Paweł Żochowski
Paweł
Top achievements
Rank 1
 answered on 31 Jul 2012
1 answer
195 views
Hi,

When I am trying to input a ¬ symbol into a RadRichTextBox element, it does a carriage return + newline instead of writing out the symbol. I have tried both pasting the symbol in as well as pressing the keyboard command.

Do you have any idea what might cause this?

Thanks in advance
Iva Toteva
Telerik team
 answered on 31 Jul 2012
1 answer
97 views
Hi,
I need to create a chart similar to the image attached. My main question is whether this can be done using ChartView and if yes, then how to do this. The main point of the chart is to display a combination of events and individual point. Each point has a timestamp and a value, and an event has a start time and end time. The X axis is time. The Y axis is a type (a string description). The ChartView control is quite extensive, and I used it in the past to display scatter graph, but this problem has me puzzled. Displaying individual point streams is easy, but the event stream part does not seem to fit into anything available to me. Based on my reading it seems as I may have to implement my own series class - if that is the case the example of doing so would be great.

Thanks
Tsvetie
Telerik team
 answered on 31 Jul 2012
1 answer
313 views
I have one TextBox(for searching items in Radgridview) and RadGridview in my WPF window. When we search any items from textbox focus will be on first row. After that when i press mouse up and down buttons focus will move next line. But it did not happen. When i click on mouse on hihglighted row, Then only focusing is changing. Can any one help on this? 

Thanks,
Ram

Dimitrina
Telerik team
 answered on 31 Jul 2012
7 answers
195 views
Hi,

I am using ScatterLineSeries to plot a serie of data points. What I want to achieve is that I could mouse-click on a point and move it up or down. How could I achieve this. Please help. The control I am using is ChartView for WPF in 2012 Q2 package.

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 30 Jul 2012
3 answers
150 views
I would like to know how to display the following view model 

public class AssetClassLevelViewModel
{    
     
public string AssetClassName {get; set;}

     
public ObservableCollection<AssetClassLevelViewModel> ChildAssetClasses {get; set;}

     
public ObservableCollection<ProductHoldingsWithAllocationViewModel> ProductHoldings {get; set;}

}
The ProductHoldingsWithAllocationViewModel has properties such as ProductName etc., which are to be displayed in columns. Attached is a sample of what it should look like.

The AssetClass in the picture is in the AssetClassLevelViewModel, and each of the Products is represented by the ProductHoldingsWithAllocationViewModel.

I would like to know if this is possible, if we are to use the RadTreeListView.

Thank You

Pavel Pavlov
Telerik team
 answered on 30 Jul 2012
1 answer
445 views
Hello,

I am using RadControls version 2012.2.607.40 for WPF 4.

I am having an issue with the scrolling of a RadGridView. The problem is that under certain circumstances, the RadGridView scrolls to the top for no apparent reason. The following xaml and code-behind show a simple sample:

<Window x:Class="RadGridViewScrollingSample.MainWindow"
        xmlns:local="clr-namespace:RadGridViewScrollingSample"
        x:Name="_this"
        Title="MainWindow" Height="350">
     
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    </Window.Resources>
     
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
 
        <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
            <TextBlock Text='Scroll down in the grid view below then move the mouse over "Place Mouse Here".'/>
            <TextBlock Text="You will see the grid view automatically scroll to the top."/>
            <TextBlock Text='Clicking in "Place Mouse Here" will scroll the last row of the grid view in to view, but'/>
            <TextBlock Text='the grid view will again scroll to the top when the mouse is moved outside "Place Mouse Here".'/>
        </StackPanel>
 
        <telerik:RadGridView x:Name="gridView" Grid.Row="1" Grid.Column="0" ScrollViewer.VerticalScrollBarVisibility="Visible" ItemsSource="{Binding Path=Things}"/>
         
        <TextBlock Grid.Row="1" Grid.Column="1" x:Name="placeholder" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" TextAlignment="Center" Text="Place Mouse Here" FontSize="40" MouseUp="OnMouseUp"/>
             
        <DockPanel Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
            <TextBlock Text="This is placeholder text.  "/>
            <TextBlock Text='This text appears when the mouse is over "Place Mouse Here".' Visibility="{Binding ElementName=placeholder, Path=IsMouseOver, Converter={StaticResource BooleanToVisibilityConverter}}"/>
        </DockPanel>
    </Grid>
</Window>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.ComponentModel;
 
namespace RadGridViewScrollingSample
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private ObservableCollection<Thing> things = new ObservableCollection<Thing>();
 
        private string[] colors = new string[] { "red", "green", "blue", "orange", "purple" };
        private string[] sizes = new string[] { "small", "medium", "large" };
 
        public MainWindow()
        {
            InitializeComponent();
 
            DataContext = this;
 
            int i = 0;
            for (char c = 'A'; c <= 'Z'; c++, i++)
            {
                things.Add(new Thing(c.ToString(), colors[i % colors.Length], sizes[i % sizes.Length]));
            }
        }
 
        public ObservableCollection<Thing> Things
        {
            get { return things; }
        }
 
        private void OnMouseUp(object sender, MouseButtonEventArgs e)
        {
            gridView.ScrollIntoView(things.FirstOrDefault(t => t.Name == "Z"));
        }
    }
 
    public class Thing
    {
        private string name;
        private string color;
        private string size;
 
        public Thing(string name, string color, string size)
        {
            this.name = name;
            this.color = color;
            this.size = size;
        }
 
        public string Name
        {
            get { return name; }
        }
 
        public string Color
        {
            get { return color; }
        }
 
        public string Size
        {
            get { return size; }
        }
    }
}

If I scroll the RadGridView to the bottom and then move the mouse over the text "Place Mouse Here", the RadGridView scrolls to the top. If I then click the mouse over "Place Mouse Here", causing the RadGridView to scroll to the bottom, and then move the mouse outside the text "Place Mouse Here", the RadGridView again scrolls to the top. Note that placing the mouse over the text "Place Mouse Here" causes a TextBlock to become visible at the bottom of the screen.

I can stop this auto scrolling of the RadGridView by changing either or both the grid row height of * or grid column width of * to a fixed value. However, this is not an acceptable solution because I want those grid row and column to take all remaining space in the window.

I believe, but can't prove, that this behavior has something to do with a SizedChange event being fired when the TextBlock at the bottom of the window changes its visibility. But obviously in my case, no sizes are actually changing.

Can anybody tell me what is causing the unsolicited scrolling of my RadGridView and, better yet, how to avoid this behavior?

Thank you,

-- john
Maya
Telerik team
 answered on 30 Jul 2012
1 answer
332 views
In my ShellV, I have a CustomRegion:

   <telerik:RadDocking HasDocumentHost="True"
                            Grid.Row="3"
                            x:Name="MainRadDocking"
                            BorderThickness="0"
                            Margin="0"                            
                            Background="Transparent">
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup  prism:RegionManager.RegionName="MainPaneRegion"
                                           Name="MainDockingPanelGroup"/>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer InitialPosition="DockedLeft">
                <telerik:RadPaneGroup prism:RegionManager.RegionName="LeftPaneRegion"
                                      Name="LeftDockingPanelGroup"/>
            </telerik:RadSplitContainer>
            <telerik:RadSplitContainer InitialPosition="DockedRight">
                <telerik:RadPaneGroup  prism:RegionManager.RegionName="RightPaneRegion"
                                       Name="RightDockingPanelGroup"/>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

When I launch my application, I am getting 81 errors, here is a sample:

System.Windows.Data Information: 41 : BindingExpression path error: 'PaneHeaderVisibility' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=SelectedPane.PaneHeaderVisibility; DataItem='AutoHideArea' (Name='LeftAutoHide'); target element is 'PaneHeader' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Information: 20 : BindingExpression cannot retrieve value due to missing information. BindingExpression:Path=SelectedPane.PaneHeaderVisibility; DataItem='AutoHideArea' (Name='LeftAutoHide'); target element is 'PaneHeader' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Information: 21 : BindingExpression cannot retrieve value from null data item. This could happen when binding is detached or when binding to a Nullable type that has no value. BindingExpression:Path=SelectedPane.PaneHeaderVisibility; DataItem='AutoHideArea' (Name='LeftAutoHide'); target element is 'PaneHeader' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Information: 10 : Cannot retrieve value using the binding and no valid fallback value exists; using default instead. BindingExpression:Path=SelectedPane.PaneHeaderVisibility; DataItem='AutoHideArea' (Name='LeftAutoHide'); target element is 'PaneHeader' (Name=''); target property is 'Visibility' (type 'Visibility')

System.Windows.Data Information: 41 : BindingExpression path error: 'IsActive' property not found for 'object' because data item is null.  This could happen because the data provider has not produced any data yet. BindingExpression:Path=SelectedPane.IsActive; DataItem='AutoHideArea' (Name='LeftAutoHide'); target element is 'PaneHeader' (Name='HeaderElement'); target property is 'IsHighlighted' (type 'Boolean')

What is causing this problem? Do I need to set the bindings to a fallbackvalue? Do I need to create RadPanes within the RadPaneGroups? If so, can you send me an example?

Georgi
Telerik team
 answered on 30 Jul 2012
1 answer
135 views
Hello,

Is there any possible way to get the list of options to a word through code-behind?

Something like the famous "you mean?" Google?

thanks
Andrew
Telerik team
 answered on 30 Jul 2012
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
PersistenceFramework
DataPager
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?