Telerik Forums
UI for WPF Forum
1 answer
74 views
Hi

when using the mouse wheel, It is perfectly possible to change the content when the mouse cursor is over the control.
but, Is it possible to enable mouse wheel scrolling when the mouse cursor is not directly over the numericupdown control? assuming the control did not lose focus of course.

thanks.
Vladi
Telerik team
 answered on 26 Sep 2013
1 answer
644 views

I use the RadComboBox from Telerik in a WPF project.

My Problem is that the selected text is not updated when the selected item changes its value. So when the ViewModel changes the `Name` property of the `SelectedItem`, I can not see this in the RadComboBox.

Note: The `SelectedItem` implements `INotifyPropertyChanged` and is calling the event.


Full source code:


public class MainViewModel : INotifyPropertyChanged
{
    private readonly List<Item> _items = new List<Item>();
    private Item _selectedItem;
 
    public MainViewModel()
    {
        _items.Add(new Item { Name = "Eg Zomh JywS" });
        _items.Add(new Item { Name = "Ua Qvp Lavwz" });
        _items.Add(new Item { Name = "Nee Lzx Rdaq" });
        _items.Add(new Item { Name = "Um Ztgi Yvsg" });
        _items.Add(new Item { Name = "tma Oppt fzd" });
        _items.Add(new Item { Name = "Du Zofcy Fbs" });
        _items.Add(new Item { Name = "bc Ey Ppvvcp" });
        _items.Add(new Item { Name = "Mv RSIZtf WE" });
        _items.Add(new Item { Name = "BFb YYZ PHwC" });
        _items.Add(new Item { Name = "YSW LQ DXxHu" });
    }
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public IEnumerable<Item> Items { get { return _items; } }
 
    public Item SelectedItem
    {
        get { return _selectedItem; }
        set
        {
            _selectedItem = value;
            OnPropertyChanged("SelectedItem");
            OnPropertyChanged("SelectedItemName");
        }
    }
 
    public string SelectedItemName
    {
        get { return _selectedItem != null ? _selectedItem.Name : null; }
        set
        {
            if (_selectedItem != null)
            {
                _selectedItem.Name = value;
                OnPropertyChanged("SelectedItemName");
            }
        }
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
        {
            handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}


 

public class Item : INotifyPropertyChanged
{
    private string _name;
 
    public event PropertyChangedEventHandler PropertyChanged;
 
    public string Name
    {
        get { return _name; }
        set
        {
            _name = value;
            OnPropertyChanged("Name");
        }
    }
 
    protected virtual void OnPropertyChanged(string propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
        {
            handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}


 

<Window x:Class="TelerikRadComboBoxProblem.MainWindow"
        Title="MainWindow" Height="150" Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
         
        <TextBlock Text="Search: " VerticalAlignment="Center" />
        <telerik:RadComboBox Grid.Row="0" Grid.Column="1"
            ItemsSource="{Binding Items, Mode=OneWay}"
            SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
            StaysOpenOnEdit="True"
            DisplayMemberPath="Name"
            CanAutocompleteSelectItems="False"
            IsEditable="True"
            IsReadOnly="False"
            OpenDropDownOnFocus="True"
            IsFilteringEnabled="True"
            TextSearchMode="Contains">
        </telerik:RadComboBox>
         
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Rename: " VerticalAlignment="Center" />
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectedItemName, Mode=TwoWay}" />
 
    </Grid>
</Window>


 

public partial class MainWindow
{
    public MainWindow()
    {
        InitializeComponent();
        DataContext = new MainViewModel();
    }
}

Rosen Vladimirov
Telerik team
 answered on 26 Sep 2013
1 answer
65 views
In the teleric grid when i press the up and down arrow the selection is not working it's selecting alternative rows.
Yordanka
Telerik team
 answered on 26 Sep 2013
5 answers
246 views

Hello Telerik,


I am using version 2013.2.724.40 and I have the following problem. I’m working on an MVVM WPF application. It is a multi-thread application which draws data form a postgres db, displays the data and writes them in to a SQL EXPRESS DB. In one (two) View(s) the data can be displayed and manipulate in a RadGridView this is directly bound to a QueryableEntityCollectionView<>, I’m using the Microsoft Entity Framework.


Occasionally and absolutely not reproducible, but nonetheless too often I get an unhandled EntityCommandExecutionException, mostly when the user push a button to change the View. The Inner Exception is "A severe error occurred on the current command.  The results, if any, should be discarded.". If this occurs in the Debugger and when I have a look at the stack, it looks like in the attached picture.


I have the suspicion that comes from the QueryableEntityCollectionView<> bound to the RadGridView, but I have no idea how to prevent this and/or on which place I should enclose some code with a try catch block.
As you can see in the stack none of my functions or classes are involved.


May be someone have an idea.


Regards Uwe

Rossen Hristov
Telerik team
 answered on 26 Sep 2013
2 answers
151 views
Hi,

Is it possible to have a drill down option for  horizontal bar chart in WPF ?

If yes please provide me the sample code.

Thanks,
Ramya
Ruth
Top achievements
Rank 1
 answered on 26 Sep 2013
7 answers
1.2K+ views
Hi,

I picked up the following code from the forum that enables my application to be placed in the task bar with the Icon that  i referenced.  This works well but if I pin the app to the taskbar the icon reverts back to the icon that normally shows in the microsoft main window.  How can I get my icon to persit when being pinned to the taskbar,  Also, while I am asking for help on the icon, how do I get the icon to also show in the window header.

Thanks
Rich


public void ShowInTaskbar(RadWindow control, string title)
        {
            control.Show();
            var window = control.ParentOfType<Window>();
            window.ShowInTaskbar = true;
            window.Title = title;
            var uri = new Uri("pack://application:,,,/Images/myapp.png");
            window.Icon = BitmapFrame.Create(uri);
        }
Richard Harrigan
Top achievements
Rank 1
 answered on 25 Sep 2013
2 answers
164 views
The following xaml does not seem to work:

<telerik:RadRibbonButton telerik:ScreenTip.Description="Start a new section at the current position."
			 LargeImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageBreak.png"
			 telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding InsertSectionBreakCommand}"
			 Size="Large"
			 Text="Section Break"
			 telerik:ScreenTip.Title="Section Break" />

There seems to be such a command as
InsertSectionBreakCommand, but it does no seem to be implemented or something 
Clifford
Top achievements
Rank 1
 answered on 25 Sep 2013
3 answers
270 views
I have been trying to create a chart that has two x-axis lineseries. They both have the same Category and Value binding, but to 2 different items sources. Whenever I load the data into the data sources the graph are in the chart plots them side by side.

I am 99% sure this is because my category datasource doesn't have the same categories in each. I have a time element stored in milliseconds and a value element. Now the time element for the first record in the first dataset is "0.03" but in the second dataset it's "0.028". Second record is "0.07" and "0.66" respectively.

This is for a data logging analysis app, so I'm essentially trying to combine two sets of data with slightly differing millisecond capture points but overlayed on the same chart area.

So given that I have differing "categories" I'm presuming that I'd need to look at the linearaxis, but when I do I get no chart data. I'm trying to get something similar to the 2nd image on this Telerik post: http://blogs.telerik.com/winformsteam/posts/13-04-04/top-3-features-you'll-love-about-radchartview-q1'13

If I create a chart like this you can see what I mean:
<tel:RadCartesianChart >
  <tel:RadCartesianChart.HorizontalAxis>
    <tel:CategoricalAxis/>
  </tel:RadCartesianChart.HorizontalAxis>
  <tel:RadCartesianChart.VerticalAxis>
    <tel:LinearAxis/>
  </tel:RadCartesianChart.VerticalAxis>
  <tel:RadCartesianChart.Series>
    <tel:LineSeries Stroke="Orange" StrokeThickness="2">
      <tel:LineSeries.DataPoints>
       <tel:CategoricalDataPoint Category="1" Value="10"/>
       <tel:CategoricalDataPoint Category="2" Value="30"/>
       <tel:CategoricalDataPoint Category="3" Value="20"/>
      </tel:LineSeries.DataPoints>
    </tel:LineSeries>
    <tel:LineSeries Stroke="Blue" StrokeThickness="2">
      <tel:LineSeries.DataPoints>
        <tel:CategoricalDataPoint Category="1.1" Value="45"/>
        <tel:CategoricalDataPoint Category="2.1" Value="20"/>
        <tel:CategoricalDataPoint Category="3.1" Value="40"/>
      </tel:LineSeries.DataPoints>
    </tel:LineSeries>
  </tel:RadCartesianChart.Series>
 </tel:RadCartesianChart>
Mike
Top achievements
Rank 1
 answered on 25 Sep 2013
2 answers
134 views
Hi

See the attached image. I want to navigate to only the pink cells when tab key pressed from keyboard. How can i achieve that?
Dimitrina
Telerik team
 answered on 25 Sep 2013
0 answers
98 views
How can I change the icon displayed when I'm not allow to drop?
Alex Martin
Top achievements
Rank 1
 asked on 25 Sep 2013
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?