Telerik Forums
UI for WPF Forum
3 answers
202 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
88 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
128 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
182 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
197 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
285 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
263 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
122 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
5 answers
196 views
I'm currently evaluating the GridView control for a project and am trying to determine if it supports a feature I would like to have. I've searched for this and found nothing, but I'm not sure if there's a common name for the feature I'm unaware of.

What I would like is the ability to show the editor template for a cell on a certain trigger, but without the row/cell entering edit mode; it'd be a sort of 'preview edit' mode. Then, when the control gains focus it would enter 'true' edit mode.

This might make more sense in context. Say I have a column displaying dates, and the editor I want to use is a standard .NET DatePicker. To edit this value I would like it to work like this: when I mouse-over a cell in that column, the editor template appears for that cell. Then, I can click into the editor textbox or click on the button that launches the popup; either of these would enter edit mode. This would allow me to edit the value with one fewer click than I'm currently able to.

Is this supported and I'm missing it, or is it possible to write myself, or just completely unsupported? Thanks.
Pavel Pavlov
Telerik team
 answered on 11 Oct 2011
0 answers
114 views
Hi telerik,

I'd like to write code that dynamically binds the Header to different properties on the DataContext depending on a bool.
I've found below code, but 'Header' is not the object to use in code - can you help me?

Thanks,

Anders, Denmark

 

 

 

 

 

Binding myBinding = _isPropertyEditor ? new Binding("DisplayNameEditor") : new Binding("DisplayNamePropertyEditor");

 

myBinding.Source = DataContext;

Header.

 

SetBinding(TextBlock.TextProperty, myBinding);

 

Anders
Top achievements
Rank 1
 asked 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?