Telerik Forums
UI for WPF Forum
6 answers
207 views
I have followed the project at http://www.telerik.com/help/silverlight/raddatafilter-how-to-create-custom-filter-editors.html to create a solution that uses a RadComboBox as a custom filter for some fields in a RadDataFilter.

I have been unable however to get the value selected in the RadComboBox to update the underlying FilterDescription, with the Filter always ending up with 'Status isEqualTo <unset>' after selecting an item in the combo box.

I am sure I have followed the project correctly, and have the SelectedValue of the ComboBox bound to the Value property as below.

<DataTemplate x:Key="ComboBoxEditor">
       <telerik:RadComboBox SelectedValue="{Binding Value, Mode=TwoWay, FallbackValue=null}" MinWidth="100" />
</DataTemplate>


The only difference I can see to the example code is that I am using the RadDataFilter unbound. It is not bound to a DataGrid, I am setting my own ItemPropertyDefinitions and using the resulting FilterDescriptions in other parts of the project. Is there a way to check that the DataTemplate Value is getting set when the RadComboBox value changes, or do I need to force the FilterDescription to update somehow as it is unbound? Finally, if nothing else is there a way to manually set the Value or update the FilterDescription when the ComboBox value changes?

Thanks

Yezdi
Top achievements
Rank 1
 answered on 12 Feb 2013
5 answers
158 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
81 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
342 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
310 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
67 views
The question is closed.
Yu
Top achievements
Rank 1
 asked on 12 Feb 2013
2 answers
250 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
169 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
112 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
213 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
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?