Telerik Forums
UI for WPF Forum
3 answers
385 views
We have KeyTipService enabled on our RadRibbonView.  Some of our users want to use Alt + Key Code (example Alt + 132) to insert special characters when typing into a textbox.  The problem is RadRibbonView is trapping the Alt command when used this way.  

Compare to an application like MS Word 2013.  Just hitting Alt and releasing brings up the key hints for navigating the ribbon.  Hitting Alt + 132 enters an "รค".  With RadRibbonView, hitting Alt even if combined with other keys always brings up the hint text and prevents default behavior of the textbox. 

Is there a way to prevent this?
Kiril Vandov
Telerik team
 answered on 11 Mar 2015
1 answer
123 views
Could not load file or assembly 'Telerik.Windows.Controls.Navigation, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.

I have reference

Telerik.Windows.Data.dll
Telerik.Windows.Controls.dll
Telerik.WIndows.Controls.Navigation.dll

First time using telerik and followed online documentation very disappointing.
Sia
Telerik team
 answered on 11 Mar 2015
1 answer
108 views
Hello Guys,

i didn't found something about this bug, so i want to report it.
If you use the RadColorEditor and the User enters more than 8 Character into the input field, the program Crashes.

Best regards
Morten
Martin Ivanov
Telerik team
 answered on 11 Mar 2015
4 answers
321 views
Hi,

Is there any way to hide option "Clear Filter" in RadGridView? I use FilteringMode.FilterRow. I know that we have available filter operators in FilterOperatorsLoading event, but this collection doesn't have option "Clear Filter". Mayve we have another way to hide this option in filter?


Ivan
Top achievements
Rank 1
 answered on 11 Mar 2015
1 answer
132 views
New to using WPF and Telerik, but I have been tasked with trying to find a way to sync Telerik with a video playback.

Our customer has a video of a training sessions and he wants to put that into this program we have for After Action Reviews or AAR.

In this AAR program we have a Telerik Time line that shows at which point in the training certain events took place, and then the specific metrics of that event. Now they want to implement this video into the program so every time they goto the AAR there is a video of the training next to the Telerik Timeline.

What I need to figure out:

* How can I sync up the video and the Telerik timeline, so that if they click to look at a certain event, the Video jumps to the corresponding spot in the video. Or if they move the video slider to say 3min mark, the Telerik timeline ALSO moves to that exact spot.

Thanks
Petar Marchev
Telerik team
 answered on 11 Mar 2015
1 answer
470 views
I have a RadTreeView bound in an MVVM style application. If a selection does not contain Details I need to disable the ability to click on that node and keep the currently selected node highlighted. The user should still able to expand and collapse.

I have tried to bind to PreviewSelected but the SelectedItem property still gets hit even if I switch e.handled = true and I lose the node highlighting on the currently selected node. 

<
UserControl.Resources>
    <ResourceDictionary>
        <Style x:Key="PHToCItemContainerStyle" TargetType="{x:Type telerik:RadTreeViewItem}" BasedOn="{StaticResource RadTreeViewDefaultItemPlusMinusStyle}">
            <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
            <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}"/>
        </Style>
        <DataTemplate x:Key="Measure">
            <TextBlock Text="{Binding Name }" Style="{StaticResource RadTreeViewItemSelectedTextBlockDefaultStyle}" VerticalAlignment="Center"/>
        </DataTemplate>
        <HierarchicalDataTemplate x:Key="Condition" ItemTemplate="{StaticResource Measure}" ItemsSource="{Binding Measures}">
            <TextBlock Text="{Binding Name}" Style="{StaticResource RadTreeViewItemSelectedTextBlockDefaultStyle}" />
        </HierarchicalDataTemplate>
        <HierarchicalDataTemplate x:Key="ConditionGroup" ItemTemplate="{StaticResource Condition}" ItemsSource="{Binding Conditions}" >
            <TextBlock Text="{Binding Name }" FontWeight="Bold" Style="{StaticResource RadTreeViewItemSelectedTextBlockDefaultStyle}" />
        </HierarchicalDataTemplate>
    </ResourceDictionary>
</UserControl.Resources>
 
...
 
<telerik:RadTreeView
    x:Name="RadTree"     
    telerik:TextSearch.TextPath="Name"   
    VirtualizingStackPanel.IsVirtualizing="True"
    VirtualizingStackPanel.VirtualizationMode="Recycling"
    ItemsSource="{Binding ResultObject}"
    Style="{StaticResource RadTreeViewDefaultPlusMinusStyle}"
    ExpanderStyle="{StaticResource RadTreeViewDefaultPlusMinusExpanderStyle}"
    ItemTemplate="{StaticResource ConditionGroup}"
    ItemContainerStyle="{StaticResource PHToCItemContainerStyle}"
    SelectedItem="{Binding ResultObject.SelectedIndexItem}" />

dll version = 2014.1.331.45
Martin Ivanov
Telerik team
 answered on 11 Mar 2015
16 answers
605 views
When I load my layout all of my binding content is gone.  I had a similar issue with Header content on a RadDocumentPane and the solution was to use a HeaderTemplate.  This did resolve my issue with the header but when I try a similar approach with a ContentTemplate I have no success.

Is there a way to preserve my RadPane content when I load the layout?

I have the following XAML:

 

 

 

<telerik:RadPane x:Name="rpIndexPane" CanUserClose="False" ContextMenuTemplate="{x:Null}" CanDockInDocumentHost="False" Header="Index"

 

 

 

telerik:RadDocking.SerializationTag="IndexPane" DataContext="{Binding}">

 

 

 

 

<ItemsControl DataContext="{Binding}" ItemsSource="{Binding ActiveJob.Patient.CurrentVisit.Sections.Items}" HorizontalContentAlignment="Stretch">

 

 

 

 

<ItemsControl.Template>

 

 

 

 

<ControlTemplate TargetType="ItemsControl">

 

 

 

 

<ScrollViewer VerticalScrollBarVisibility="Auto">

 

 

 

 

<ItemsPresenter/>

 

 

 

 

</ScrollViewer>

 

 

 

 

</ControlTemplate>

 

 

 

 

</ItemsControl.Template>

 

 

 

 

<ItemsControl.ItemTemplate>

 

 

 

 

<DataTemplate>

 

 

 

 

<Button Background="{Binding Color}" Margin="1" Visibility="{Binding Visible, Converter={StaticResource BoolToVisConverter}}">

 

 

 

 

<TextBlock Text="{Binding Name}" Margin="3,5,3,5" HorizontalAlignment="Center"></TextBlock>

 

 

 

 

</Button>

 

 

 

 

</DataTemplate>

 

 

 

 

</ItemsControl.ItemTemplate>

 

 

 

 

</ItemsControl>

 

 

 

 

</telerik:RadPane>

 

Kalin
Telerik team
 answered on 11 Mar 2015
12 answers
316 views
Is it possible to take objectmodel and pass each objects "ID" property to an expressioneditor as a field? or maybe each column id in a datatable?
Dimitrina
Telerik team
 answered on 11 Mar 2015
1 answer
249 views
Hello,
 
I have a RadDiagram in which I load 400 items with almost 50 binding properties per-item, like for example BackgroundColor, FontSize, Width, Height, Visibility, etcโ€ฆ

Example of BackgroundColor property for binding: 

private Brush backgroundColor ;
public Brush BackgroundColor
{
      get{ return backgroundColor; }
      set
      {
              backgroundColor = value;
              OnPropertyChanged(โ€œBackgroundColorโ€);
      }


Each item is a derived class from MyNode:NodeViewModelBase with DataTemplate:  

<telerik:RadDiagram.ShapeStyle>               
       <Style TargetType="telerik:RadDiagramShape">
               <Setter Property="Position" Value="{Binding Position, Mode=TwoWay}" />                  
               <Setter Property="Background" Value="{Binding BackgroundColor} " />                   
               <Setter Property="BorderBrush" Value="Transparent" />
               โ€ฆโ€ฆโ€ฆโ€ฆโ€ฆ

The performance is very bad. It last up to 5 seconds to display the whole diagram with all items over it.  

Any help to enhance the performance?
Pavel R. Pavlov
Telerik team
 answered on 11 Mar 2015
1 answer
196 views
Hello. I kind of necroposted in other thread about this issue. That thread seems to be inactive though, so I thought I might as well start a new one, and add some context.

So, long story short, I am trying to implement MVVM with RadDocking and I am having troubles with data binding. Whenever I call LoadLayout method all the binidings that were set in templates break, and i don't know how to fix them.

This is the global style, I'm applying to RadPanes:

<DataTemplate x:Key="HeaderTemplate">
    <StackPanel Orientation="Horizontal">
        <Image Margin="0,0,3,0" Source="{Binding Screen.IconSource}" Width="16" Height="16""/>
        <TextBlock Text="{Binding Screen.Title}"/>
    </StackPanel>
</DataTemplate>
 
<Style TargetType="{x:Type Controls:RadPane}">
    <Setter Property="HeaderTemplate" Value="{StaticResource HeaderTemplate}"/>
    <Setter Property="TitleTemplate" Value="{StaticResource HeaderTemplate}"/>
</Style>

This is my viewmodel class which represents a single pane:
public class ScreenViewModel
{
        public ScreenViewModel(IScreen screen)
        {
            Screen = screen;
        }
 
        public IScreen Screen { get; private set; }
         
        private RadPane _pane;
          //this property is set in DockingPanesFactory.CreatePaneForItem method
        public RadPane Pane
        {
            get { return _pane; }
            set
            {
                _pane = value;
                _pane.Content = Screen.View;
                _pane.Header = this;
                RadDocking.SetSerializationTag(_pane, Screen.ContentId);
            }
        }
//+some other irrelevant properties
}
 
//this is my model
interface IScreen
{
    UIElement View { get; }
    string Title { get; }
    string ContentId { get; }
    ImageSource IconSource { get; }
}

And this is how I load the layout:
public ObservableCollection<ScreenViewModel> Screens { get; set; }
 
public void Load(string file, IScreenFactory screenFactory)
{
    if (!File.Exists(file)) return;
    Screens.Clear();
    using (var fs = File.OpenRead(file))
    {
        var doc = XDocument.Load(fs);
        foreach (var screenId in doc.Descendants("RadPane").Select(x => x.Attribute("SerializationTag").Value))
        {
            //some factory wich creates models by their IDs
            IScreen screen = screenFactory.RestoreScreen(screenId);
            Screens.Add(new ScreenViewModel(screen));
        }
        if (Screens.Any())
        {
            fs.Position = 0;
            //after this call all template the bindings break
            _radDocking.LoadLayout(fs);
        }
    }
}
After the LoadLayout call I can see that header content is set, and that the template is applied, but the bindings set by this template are broken (VS Output is flooded by binding exceptions), which results in empty pane headers. What am I doing wrong?

Nikita
Top achievements
Rank 1
 answered on 11 Mar 2015
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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?