Error 1
'/Telerik.Windows.Controls;component/Themes/GenericExpressionDark.xaml'
value cannot be assigned to property
'Source'
of
object
'System.Windows.ResourceDictionary'
.
'/Telerik.Windows.Controls;Component/themes/Expression/Dark/BusyIndicator.xaml'
value cannot be assigned to property
'Source'
of
object
'System.Windows.ResourceDictionary'
. Could not load type
'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute'
from assembly
'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
. Line
'142'
Position
'39'
. Error at
object
'System.Windows.ResourceDictionary'
in
markup file
'Telerik.Windows.Controls;component/Themes/GenericExpressionDark.xaml'
. Error at
object
'System.Windows.ResourceDictionary'
. C:\Documents and Settings\akedzier\My Documents\Visual Studio 2008\Projects\DSD_MissionsBoards\DSD_MissionsBoards\Scenes\Scene_07.xaml 104 33 DSD_MissionsBoards
<
telerik:RadGridView
Grid.Row
=
"1"
Grid.ColumnSpan
=
"3"
SelectionMode
=
"Single"
IsReadOnly
=
"True"
Name
=
"radGridView1"
ItemsSource
=
"{Binding Path=ModelCodeList}"
SelectedItem
=
"{Binding Path=SelectedModel, Mode=TwoWay}"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Code}"
Header
=
"Model"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ID}"
Header
=
"ID"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding OemName}"
Header
=
"OEM Name"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ModalityCode}"
Header
=
"Modality Code"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Active}"
Header
=
"Model Active"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
public
Model SelectedModel
{
get
{
return
selectedModel; }
set
{
if
(selectedModel != value)
{
selectedModel = value;
}
RaisePropertyChanged(() =>
this
.SelectedModel);
AddSelectedModelCommand.RaiseCanExecuteChanged();
}
}
Hello,
I'm currently evaluating the trial version of RadControls for WPF 2010_3_1314.
I have found solutions for my other problems with the RadDateTimePicker, but couldn't find anything on opening the calender to the current date for the WPF version.
In my window I have a RadDateTimePicker to select the birth-date of a person, bound to the entity selected from a SQL-database.
When a new person is added it has no birth-date, as this is not a mandatory field.
In everyday use the calendar will hardly be needed, as it is simpler just to type the birth-date instead of navigating there.
However it would still be nice to open the calendar to the current date instead of 1/1/1800, the minimum allowed date I have set.
How can I open the calendar to the current date, without it actually being selected?
Thanks
I have a completely dynamic RadTreeView that users can add items to. To add a child item, the user selects an existing item and presses a button to generate a new item under the currently selected item. All of that works fine, but the parent item doesn't expand to show the newly added item. I'm trying to get this to happen so that the user doesn't have to manually expand the parent after adding a child.
This project is using MVVM and the tree items are all databound to an ObservableCollection of a custom class located in my View-Model. The currently selected item is also databound to a property in my View-Model that is of the same custom class as the ObservableCollection.
Since I'm adding the new items to my tree through the databound property in the View-Model, I can't simply tell the parent to expand from there because it has no access to the UI elements. Immediately after I create the new item I set it in the View-Model as the currently selected item. I figure this will trigger the SelectionChanged event on the RadTreeView (which it does) so my idea is to try and expand the parent of the currently selected item from there.
The problem there is that I can't get anything working properly in the SelectionChanged event.
The "SelectionChangedEventArgs" Source property only gives me an object of the custom class type. Obviously that doesn't allow me to change the IsExpanded property. Whenever I try to cast the Source property as a RadTreeViewItem it always returns null. Similarly I have also tried iterating through the RadTreeView itself, but that does the same thing. I can easily get the object of the custom class from the View-Model, but nothing I try gives me the RadTreeViewItem for me to expand.
I've messed around with the GetItemByPath and ExpandItemByPath methods, but it is completely possible for items in my tree to have the exact same name. In that case, how would those methods know which path is the right path? I don't think those will work for me.
I have also tried the code here, specifically this:
private
void
radTreeView_SelectionChanged(
object
sender, Telerik.Windows.Controls.SelectionChangedEventArgs e )
{
// Get a reference to the treeview
Telerik.Windows.Controls.RadTreeView treeView = sender
as
Telerik.Windows.Controls.RadTreeView;
// Get the currently selected items
ObservableCollection<Object> selectedItems = treeView.SelectedItems;
RadTreeViewItem item = selectedItems[ 0 ]
as
RadTreeViewItem;
}
However, as I mentioned before, "item" is always coming out null. If I instead cast it to my custom class, item holds the correct data and I can get the parent item, but is not a RadTreeViewItem for me to expand.
Thanks in advance for any help...
var companyFilter = new FilterDescriptor("Receiver Company", FilterOperator.Contains, "", true);
radDataFilter.FilterDescriptors.Add(companyFilter);
var addressFilter = new FilterDescriptor("Address Line 1", FilterOperator.Contains, "", true);
radDataFilter.FilterDescriptors.Add(addressFilter);
//// DateTime filter.
var dateFilter = new FilterDescriptor("Created Date", FilterOperator.IsGreaterThan,
new DateTime(2007, 5, 1));
radDataFilter.FilterDescriptors.Add(dateFilter);
<
telerik:RadComboBox
HorizontalAlignment
=
"Left" SelectedIndex="{Binding xx}"
Margin
=
"114,207,0,0"
Name
=
"radComboBox2"
VerticalAlignment
=
"Top"
Width
=
"205"
>
<
telerik:RadComboBoxItem
Content
=
"Item 1"
/>
<
telerik:RadComboBoxItem
Content
=
"Item 2"
/>
<
telerik:RadComboBoxItem
Content
=
"Item 3"
/>
</
telerik:RadComboBox
>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.radComboBox2.SelectedIndex = 2;
}
}