Telerik Forums
UI for WPF Forum
1 answer
158 views
We've just started a new WPF project, using the .NET Framework 4.0.  And we're new to using Telerik tools.  Without realizing it, I installed the .NET 3.5  Framework version of the RAD Controls from Telerik, and have started a project using those controls.  So far we haven't actually placed any controls on any window/page, but the project itself refernces the 3.5 RAD Controls.  Well, we don't want to use the 3.5 version, we want to use the 4.0 version.  My colleague has downloaded the 4.0 version, and we're going to install it on both of our development machines.

Bottom line: how do I migrate our project from the RAD Controls 3.5 .NET Framework to RAD Controls 4.0 .NET Framework?
Vlad
Telerik team
 answered on 12 Oct 2011
7 answers
278 views
I'm trying to change the spellchecker language.
I downloaded a nb-NO.tdf file and put it in the Resources.
I use your example..


InitializeComponent();
...
...
     ((DocumentSpellChecker)editor.SpellChecker).AddDictionary(new RadEn_USDictionary(), CultureInfo.InvariantCulture);
            LoadDictionary();
        }

        private void LoadDictionary()
        {
            var culture = new CultureInfo("nb-NO");
            var res = Properties.Resources.nb_NO;
            var tdfFileStream = new MemoryStream();
            tdfFileStream.Write(res, 0, res.Length);
            var dictionary = new RadDictionary();
            dictionary.Load(tdfFileStream);
            ((DocumentSpellChecker)editor.SpellChecker).AddDictionary(dictionary, culture);
            Thread.CurrentThread.CurrentCulture = culture; 
        }

But it does not work.
Do I call LoadDictionary() from the right place?
How should I tell the editor to use the new language?
Kotte
Top achievements
Rank 1
 answered on 12 Oct 2011
3 answers
194 views
Hello,

i got a problem when using the RadPropertyGrid with a template. When i set the property AutoGeneratePropertyDefinitions to false and use the RadPropertyGrid inside a DataTemplate, the property seems to be ignored and i see all properties of the class object.

<Window ... >
  
    <Window.Resources>
  
        <local:TemplateSelector x:Key="templateSelector">
  
            <local:TemplateSelector.TemplateA>
  
                <DataTemplate>
  
                    <rad:RadPropertyGrid AutoGeneratePropertyDefinitions="False" Item="{Binding }">
                         
                        <rad:RadPropertyGrid.PropertyDefinitions>
  
                            <rad:PropertyDefinition DisplayName="The only property displayed" />
                              
                        </rad:RadPropertyGrid.PropertyDefinitions>
 
                    </rad:RadPropertyGrid>
  
                </DataTemplate>
  
            </local:TemplateSelector.TemplateA>
  
        </local:TemplateSelector>
  
    </Window.Resources>
 
 <Grid>
 
    <ContentPresenter  ContentTemplateSelector="{StaticResource templateSelector}"  Content="{Binding }" />
                  
 </Grid>
  
</Window>

With kind regards,

Sebastian
Ivan Ivanov
Telerik team
 answered on 11 Oct 2011
1 answer
83 views
When I have a TextBox editing element for a cell in edit mode, pressing Tab causes the next cell to become current and enter edit mode. I am having difficulty achieving the same behavior for more complex controls, such as ComboBox (not RadComboBox). I know how to customize ComboBox key handling so that Tab will select an item and hide the dropdown. But no matter what I do, I can't get it to move to the next cell. Instead focus moves to some control outside of the RadGridView, even when the drop down was not open.
Ivan Ivanov
Telerik team
 answered on 11 Oct 2011
2 answers
120 views
Hello ,
By Default rad chart shows y axis point as annotations .
Is there any way to show x axis points as annoattions?
Thanks for any help.....

One correction :I meant Point labels.
Evgenia
Telerik team
 answered on 11 Oct 2011
3 answers
168 views
I need to group a property that does not implement IComparable. I'd expect it to simply do a ReferenceEquals. It's not. It's erroring.

I cannot alter the class being grouped without serious effort, it's a WCF Data Services entity (they do not implement IComparable).
Vlad
Telerik team
 answered on 11 Oct 2011
1 answer
178 views
Hi,

I'm using a TileView and have a RadHorizontalBulletGraph that I only display when the TileView item is in the maximized state. When I maximize an item, the bullet graph displays correctly, but when I go to minimize the item, I get a NullReferenceException. There's not much of a stack trace, but here it is:

   at System.Windows.StyleHelper.FindNameInTemplateContent(DependencyObject container, String childName, FrameworkTemplate frameworkTemplate)
   at System.Windows.TemplateNameScope.System.Windows.Markup.INameScope.FindName(String name)
   at System.Windows.FrameworkElement.FindName(String name)
   at Telerik.Windows.Controls.ChildrenOfTypeExtensions.GetChildByName(FrameworkElement element, String name) in c:\TB\117\WPF_Scrum\Release_WPF_40\Sources\Development\Core\Controls\Extensions\ChildrenOfTypeExtensions.cs:line 42
   at Telerik.Windows.Controls.BulletGraph.RadBulletGraphBase.ToggleAxis() in c:\TB\117\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\DataVisualization\BulletGraph\Base\RadBulletGraphBase.cs:line 925
   at Telerik.Windows.Controls.BulletGraph.RadBulletGraphBase.SynchronizeFeaturedMeasures() in c:\TB\117\WPF_Scrum\Release_WPF_40\Sources\Development\Controls\DataVisualization

Here's a simplified version of my XAML. Any ideas?
<DataTemplate x:Key="MachineTileLarge">
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition/>
        <RowDefinition/>
        <RowDefinition/>
        <RowDefinition/>
    </Grid.RowDefinitions>
    <telerik:RadHorizontalBulletGraph Grid.Row="1" Maximum="100"
        ComparativeMeasureBrush="CornflowerBlue" FeaturedMeasureBrush="SeaGreen"
        ComparativeMeasure="32" FeaturedMeasure="75" />
</Grid>
</DataTemplate>
<DataTemplate x:Key="MachineTemplate">
    <telerik:RadFluidContentControl ContentChangeMode="Manual" TransitionDuration="0:0:.5"
        State="{Binding State, Converter={StaticResource tileConverter}}"
        SmallContentTemplate="{StaticResource MachineTileSmall}"
        ContentTemplate="{StaticResource MachineTileNormal}"
        LargeContentTemplate="{StaticResource MachineTileLarge}" />
</DataTemplate>
 
<Style TargetType="telerik:RadTileView">
    <Setter Property="PreservePositionWhenMaximized" Value="True" />
    <Setter Property="telerik:TileViewPanel.IsVirtualized" Value="True" />
    <Setter Property="IsAutoScrollingEnabled" Value="True" />
    <Setter Property="TileStateChangeTrigger" Value="SingleClick" />
    <Setter Property="MinimizedColumnWidth" Value="200" />
    <Setter Property="MinimizedRowHeight" Value="225" />
    <Setter Property="RowHeight" Value="330" />
    <Setter Property="ColumnWidth" Value="290" />
    <Setter Property="ContentTemplate" Value="{StaticResource MachineTemplate}" />
    <Setter Property="ItemTemplate" Value="{StaticResource MachineTileHeader}" />
</Style>
 
<telerik:RadTileView ItemsSource="{Binding Path=MachineStatusItems}"                                    
     TileStateChanged="tileView_TileStateChanged"
     TileStateChangeTrigger="SingleClick"
     MaximizeMode="ZeroOrOne"
     IsItemDraggingEnabled="True"
     PreservePositionWhenMaximized="True"/>
Yavor
Telerik team
 answered on 11 Oct 2011
1 answer
267 views
Hi there,

I have a dynamic collection which I bind to the tab control, however, I would also like to be able to enable / disable the tabs based on some criteria, however, I am unsure of what to  bind to so I Can disable tabbing to the control.

I followed your basic demo for binding to a collection please see code below

<Grid>
        <Grid.DataContext>
            <WpfApplication3:MainWindowViewModel/>
        </Grid.DataContext>
        <telerik:RadTabControl ItemsSource="{Binding People}" >
            <telerik:RadTabControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}"/>
                </DataTemplate>
               
            </telerik:RadTabControl.ItemTemplate>
            <telerik:RadTabControl.ContentTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Age}"/>
                </DataTemplate>
            </telerik:RadTabControl.ContentTemplate>
        </telerik:RadTabControl>
    </Grid>

Thanks
Petar Mladenov
Telerik team
 answered on 11 Oct 2011
4 answers
241 views
Hi there,

I am using RadScheduleView version 2011.2.920.40 with ViewModel style.

XAML:
AppointmentsSource="{Binding StaffAppointments}" ResourceTypesSource="{Binding StaffResourcesTypes}"

The appointments are not updated on the view when AppointmentsSource is updated. Unless I click on WeeklyView then back to TimelineView, and the appointments are updated on the UI.

I thought this problem has been addressed?
http://www.telerik.com/community/forums/preview-thread/wpf/scheduleview/appointments-not-update-on-view-when-source-is-updated.aspx

Please advise.
Rosi
Telerik team
 answered on 11 Oct 2011
2 answers
113 views
Hello,
I have a Hierarchy RadGridView that works fine.

But there are 2 things I can'y achieve :
1. There can't be more than one row selected => if for example a user selects a row in the child Grid, no other row in the parent Grid must be selected. The same if the user selects a row in the parent Grid....
2. I want to retrieve the ID of the selected Row. It works if the user selects a row in the parent Grid, but not if the user selectd a row in th child Grid. In the SelectionChanged event, I cast e to GridViewDataControl, to be able to test ParentRow, but it's not working...

Thanks a lot for your help.
Xavier
Xavier
Top achievements
Rank 1
 answered on 11 Oct 2011
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?