Telerik Forums
UI for WPF Forum
2 answers
551 views

It is possible to restore selected value in the view model i'm trying 
something like this but combobox do not changed to the correct item you see last selected from the use 

<telerik:RadComboBox ItemsSource="{Binding Tests}" Width="150" Height="25"
                             SelectedValuePath="Id">
            <telerik:RadComboBox.SelectedValue>
                <Binding Path="SelectedTestId" Mode="TwoWay" BindsDirectlyToSource="True" UpdateSourceTrigger="PropertyChanged"/>
            </telerik:RadComboBox.SelectedValue>
            <telerik:RadComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}"/>
                </DataTemplate>
            </telerik:RadComboBox.ItemTemplate>
        </telerik:RadComboBox>

     public int SelectedTestId
        {
            get
            {
                return selectedTestId;
            }
            set
            {
                OldSelectionTestId = selectedTestId;

                SetProperty(ref selectedTestId, value);

                if (OldSelectionTestId > 20 && SelectedTestId == 20)
                {
                    Debug.WriteLine($"oldSelectionTestId = {OldSelectionTestId}");
                    Debug.WriteLine($"SelectedTestId = {SelectedTestId}");
                    HasError = true;
                }
            }
        }

Martin Ivanov
Telerik team
 answered on 01 Apr 2019
3 answers
173 views

Observe any other edit control in existence. When you hold the arrow key down to move the caret through text, it stays visible and does not blink until a brief pause after you take your finger off. Unfortunately in RadRichTextBox it keeps blinking so you lose track of where it is. This is very frustrating when you are navigating long documents because it can even prevent you from seeing the caret moving to a different line. Or hold down any character key and the caret disappears completely, giving you one less cue that something is haywire if your arm is leaning on the keyboard.

 

This isn't a bug per se but it isn't a minor usability issue either. What has to happen is an idle timer begins *immediately after* a key down, during which no blinking can begin. If a key down happens again, the timer resets. If the timer expires, then that starts the caret show timer.

Tanya
Telerik team
 answered on 01 Apr 2019
3 answers
142 views
UI for WPF We are using a telerik 15.2 version for WPF and win forms and as per you site you have not mentioned anything related to whether or not you support windows 10.  Can you please confirms if windows 10 is supported and if yes from what version.
Lance | Senior Manager Technical Support
Telerik team
 answered on 29 Mar 2019
1 answer
7.3K+ views
I'm struggling with this issue for a few days. I guess it's something with solution because the same assemblies works fine for other projects.
Also in design time designer works okay and draw controls, but in runtime I'm getting System.Windows.Markup.XamlParseException.

Telerik's References:
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Data

Installed Packages:
Microsoft.Bcl (1.0.19)
Microsoft.Bcl.Async(1.0.165)
Microsoft.Bcl.Build(1.0.4)

Controls version is 2013.2.724.40 for .net 4.0,
Visual Studio 2013 with latest updates,
Windows 8.1

I have tried:
1) add references for assemblies in new solution and it works okay;
2) create new project(Wpf User Control Library and Class Library) in solution;
3) uninstall Microsoft.Bcl packages;
4) download latest trial version and even designer throw exception and intellisense didn't work for http://schemas.telerik.com/2008/xaml/presentation in xaml ( <telerik: and empty list ).

So I have no idea what is going wrong... Could you help?

Dinko | Tech Support Engineer
Telerik team
 answered on 29 Mar 2019
5 answers
551 views

I am dynamically generating tabs based on databinding.  After I change the datacontext I get the tabs I expect but none of the tabs are selected. I am expecting a tab (likely the first one) to be selected when this happens.   I should mention I am using an older version R2 2017

 

<CheckBox x:Name="cbox" Click="CheckBox_Checked">Click Me</CheckBox>
<telerik:RadTabControl x:Name="tabCtrl" DisplayMemberPath="Name" ItemsSource="{Binding TabItems}" Height="250"/>
private void TabCtrl_DataContextChanged (object sender, DependencyPropertyChangedEventArgs e)
    {
    // Attempting to fixt the problem here. Tabs are still unselected when changing data context
    this.tabCtrl.SelectedIndex = 0;
    }
 
/// <summary>
/// Simulating a data context change in a complicated MVVM scenario here
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void CheckBox_Checked (object sender, RoutedEventArgs e)
    {
 
    if ( cbox.IsChecked == true )
        {
        this.tabCtrl.DataContext = m_mainVm.TabViewModelA;
        }
    else
        {
        this.tabCtrl.DataContext = m_mainVm.TabViewModelB;
        }           
    }  

 

Martin Ivanov
Telerik team
 answered on 29 Mar 2019
1 answer
138 views

In the following example of MVVM application i tried to bind AccessKey to ribbon items to ribbon items. Unfortunatly the user have to navigate through ribbon and cannot use hotkey direcctly. The  user have to press hotkey for tab to can use Hotkey for button. Which is just a little bit unpractical if the user wants to use to acces functionality direct, or to inform which hotkey is for which button.

In your example for RibbonView(wpf) called "Office" ,if I press Alt  and cann see all ToolTips for. Do I miss some think in my exampple?

 

  

Example

Alexander
Top achievements
Rank 1
Iron
 answered on 29 Mar 2019
2 answers
127 views
I want to save each tile position in each group after user reorder the tilelist, but i can't find any event about reorder. How should I accomplish this?
edjia
Top achievements
Rank 1
 answered on 29 Mar 2019
2 answers
222 views

Hi, 

Recently I have changed my WPF application Root window from Window to RadRibbonWindow and this RadRibbonwindow is not loading application Icon from embedded resources. What do I need to do, to make RabRibbonWindow load an icon "ico" from resources automatically? My all other Windows are loading Icon from embedded resources automatically.

 

 

Martin Ivanov
Telerik team
 answered on 28 Mar 2019
2 answers
154 views

Hello,

it seems the radtimepicker is always using the US Date format. Why is it not using the the host machine localisation ? The problem is now I can not easily convert to date time (even though only the time portion is relevant ) . Please see attached screen shot. Here in South Africa our machines are set to DD/M/YYYY plus time but the timepicker is return the full date in us format M/DD/YYYY plus time.

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Mar 2019
3 answers
905 views

Hello,

i am upgrading an old project that uses .NET 3.5 and Telerik UI for WPF 2012.x to the latest .NET and Telerik UI versions. I have a GridView whose ItemsSource is bound to a RadObservableCollection provided by a MVVM viewmodel. As i rememder i used this collection because of the RemoveRange-method which had some performance benefits compared to the ObservableCollection.Remove-method (suspending the collectionchanged-events).

But now i have the problem, that, if a least one column is sorted, not the correct rows are removed. The rows removed are those, that are in the place of the rows i want to delete if the table were unsorted. Deleting from an unsorted GridView works fine. If i use the Remove-method in a loop instead of the RemoveRange deleting works as expected in sorted and unsorted GridViews.

Is it not longer recommended to use the RadObservableCollection as an ItemsSource for a GridView or is it a bug?

recotech
Top achievements
Rank 1
 answered on 28 Mar 2019
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?