Telerik Forums
UI for WPF Forum
5 answers
142 views
I am verifying that my view's property setter is indeed setting. However, the PropertyGrid editor is not losing focus. That is, I don't see the (somewhat) expected editor exit and change indicator, that sort of thing. I don't know if it's a Xaml issue or not. Not setting the values special otherwise: I have an INotifyPropertyChanged-based view into my domain model. Nothing spectacular there.

<telerik:RadPropertyGrid Name="_rpgTranslation"
                         Grid.Row="1"
                         AutoGenerateBindingPaths="True"
                         telerik:StyleManager.Theme="Expression_Dark"/>
Maya
Telerik team
 answered on 12 Feb 2013
1 answer
65 views
Worst case I'll go with something like a built-in string text editor. However, would be nice to fold in the validation for instance if Version.TryParse fails. How to go about doing this for the RadPropertyGrid for WPF please? Thanks!
Maya
Telerik team
 answered on 12 Feb 2013
4 answers
319 views
Hi,

I've looked into this a good bit and can find nothing relevant.  Any threads touching on the subject are old and the API has since changed.  Basically I need to get access to an individual cell so that I can set a style for it.  I would expect there to be easy access to cells in the same way that columns can be accessed.

I'm looking for something like: 

myGrid.Columns[0].Rows[0].Style = myStyle;

A call like that would give me access to the top left cell of the grid.

Is there any way to do something like this?

Thanks,
Austin
Dimitrina
Telerik team
 answered on 12 Feb 2013
6 answers
287 views
Hi,
(Wrongly posted on gant forum)

I want to create this behavior:

I want to be able to select only full lines, and act on double click on the line -

currently I have 2 problems with this code:

<telerik:RadGridView Name="gdTestRecords" DockPanel.Dock="Bottom" AutoGenerateColumns="False" ClipboardCopyMode ="All" MouseDoubleClick="gdTestRecords_MouseDoubleClick" SelectionMode="Extended" SelectionUnit="FullRow" MaxHeight="600" ScrollViewer.VerticalScrollBarVisibility="Visible">


1, when I double click inside the line - it selects the cell and not the line - I can only choose the line by clicking on the edge of the line.
    this code will return null: RecordType st = ((FrameworkElement)e.OriginalSource).DataContext as RecordType (unless I click on the edge)
2. when I click on the vertical scroll bar more than 2 times - it acts like selecting a cell ! - I need to interpreting clicking on scroll bar as clicking on the grid surface and not clicking inside the line.

How can I fix this ?

dani
Top achievements
Rank 1
 answered on 12 Feb 2013
0 answers
58 views
The question is closed.
Yu
Top achievements
Rank 1
 asked on 12 Feb 2013
2 answers
224 views
I have a UserControl that contains a RadPropertyGrid and one of the property definitions for the RadPropertyGrid has the EditorTemplate set to a DataTemplate that contains a RadComboBox.  When I run the application, I get the following exception:

Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified.

If I add a RadComboBox to the UserControl, the RadComboBox displays just fine.

What am I missing?


Here is the XAML:

<UserControl x:Class="Company.KendoJavaScriptExtension.MyControl"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:local="clr-namespace:Company.KendoJavaScriptExtension"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
             Name="MyToolWindow" Loaded="MyToolWindow_Loaded">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <DataTemplate x:Key="comboboxTemplate">
                <telerik:RadComboBox />
            </DataTemplate>
        </Grid.Resources>
         
        <telerik:RadPropertyGrid x:Name="propertyGrid" Loaded="propertyGrid_Loaded" />
    </Grid>
</UserControl>

In the UserControl's Loaded event handler, I have code similar to the following:

this.propertyGrid.PropertyDefinitions[5].EditorTemplate = LayoutRoot.Resources["comboboxTemplate"] as DataTemplate;
Craig
Top achievements
Rank 1
 answered on 12 Feb 2013
1 answer
153 views
I would like to be able to add a small shape (upward-pointing triangle) to the X axis of a bar chart under one of the bars.  The build report for Microsoft Team Foundation client shows something similar to what I have in mind (see attached PNG).

As a strategy, should I try to use a CartesianCustomAnnotation, and if so can that be used with a marker in a BarSeries?  How do I indicate that I want the triangle to sit under the bar marker?  Or should this be an annotation attached to the axis somehow, and if so how would I add an annotation to the X axis?

thanks,
Derek
 

Evgenia
Telerik team
 answered on 12 Feb 2013
1 answer
83 views
I have defined a RadDocking in my MainWindow.xaml. At program startup, I want to load a layout from a resource XML file. Should I do this in the MainWindow's Loaded event?

In an ideal world, I would just include the xml in the XAML:
<include MyDockingConfiguration.xml />

Perhaps this can be done using ContentControl and a ControlTemplate?
Vladi
Telerik team
 answered on 12 Feb 2013
3 answers
198 views
Hi,

1. I installed wpf demo controls on machine and i am working with them. but how can i access solution files for those controls.?

Why i am asking is the code you provided in the demo installer missing some stuff.

I am trying to see how treeview control works in WPF but it is missing some important file.

Goto FirstLook of RadTreeView Control 
   Select Code
       Select Examle.xaml
         at the bottom of the file there is code like 
  <project:ContentControlEx Grid.Column="2"
    TemplateSelector="{StaticResource DetailsTemplateSelector}"
    DataContext="{Binding Path=SelectedItem, ElementName=xTreeView}" Content="{Binding}" />

but i dont see any ContentControlEx in the code files

Please provide those files or where can i find demo solution projects

Thanks
Rama


Pavel R. Pavlov
Telerik team
 answered on 11 Feb 2013
1 answer
255 views
In an earlier thread, Ivan wrote:

    "You can create a new ControlTemplate for DataFormValidationSummary and set it through RadDataForm's ValidationSummaryStyle property. In this ControlTemplate you can set a new ItemTemplate to the ItemsControl placed in the summary. Please, use the latest internal build, if possible, as we have fixed a related issue there."

I'm trying to do this, but I'm only about half-way there.

I'm setting ValidationSummaryStyle on the RadDataForm:
<telerik:RadDataForm
        ...
        ValidationSummaryStyle="{StaticResource validationSummaryStyle}"
        />
And in Resources I'm defining the style that sets DataFormValidationSummary.Template, and the ControlTemplate that it is being set to.
<UserControl.Resources>
 
    <ControlTemplate x:Key="validationSummaryTemplate">
        <Label>Foo</Label>
    </ControlTemplate>
 
    <Style TargetType="telerikDataForm:DataFormValidationSummary" x:Key="validationSummaryStyle">
        <Setter Property="Template" Value="{StaticResource validationSummaryTemplate}" />
    </Style>
</UserControl.Resources>
And this works, so far is it goes.  I see the string "Foo" in the appropriate spot.

But I'm unclear as to what "set a new ItemTemplate to the ItemsControl placed in the summary" is supposed to mean. 
Ivan Ivanov
Telerik team
 answered on 11 Feb 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
Slider
Expander
TileList
PersistenceFramework
DataPager
TimeBar
Styling
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?