Telerik Forums
UI for WPF Forum
1 answer
76 views
Out of the blue, I have started getting an assembly error when i try to debug my application. I am utilizing RadControls for WPF Q1 2010 in VS 2008:

Error   1   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 '1' Position '491'.   C:\Documents and Settings\akedzier\My Documents\Visual Studio 2008\Projects\CCMB_WPF\WpfApplication1\panels\Panel_04.xaml   12   13   CCBM_Wpf

Here is the code it tags as problematic. It is almost verbatim from the Telerik example:
            <ControlTemplate x:Key="NewGaugeBackground"  TargetType="{x:Type ContentControl}"
                <Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"
                    <Grid.ColumnDefinitions> 
                        <ColumnDefinition Width="20"/> 
                        <ColumnDefinition Width="*"/> 
                        <ColumnDefinition Width="20"/> 
                    </Grid.ColumnDefinitions> 
                    <Grid.RowDefinitions> 
                        <RowDefinition Height="20"/> 
                        <RowDefinition Height="*"/> 
                        <RowDefinition Height="20"/> 
                    </Grid.RowDefinitions> 
                    <Ellipse Stretch="Fill" Grid.ColumnSpan="3" Grid.RowSpan="3"
                        <Ellipse.Fill> 
                            <ImageBrush ImageSource="pack://application:,,,/images/bronze.jpg" /> 
                        </Ellipse.Fill> 
                        <Ellipse.BitmapEffect> 
                            <BevelBitmapEffect BevelWidth="20" 
                                EdgeProfile="BulgedUp" 
                                Relief="0.5" 
                                Smoothness="0.3" /> 
                        </Ellipse.BitmapEffect> 
                    </Ellipse> 
                    <Ellipse Grid.Row="1" Grid.Column="1" Stretch="Fill" Fill="White" /> 
                    <Ellipse Grid.Row="1" Grid.Column="1" Height="48" Width="48"
                        <Ellipse.Fill> 
                            <ImageBrush ImageSource="pack://application:,,,/images/bronze.jpg" /> 
                        </Ellipse.Fill> 
                        <Ellipse.BitmapEffect> 
                            <BevelBitmapEffect BevelWidth="5" 
                                EdgeProfile="BulgedUp" 
                                Relief="0.5" 
                                Smoothness="0.3" /> 
                        </Ellipse.BitmapEffect> 
                    </Ellipse> 
                </Grid> 
            </ControlTemplate> 

This has compiled and run just fine previously. Not sure what changed to cause the error.


Andrey
Telerik team
 answered on 14 Apr 2010
1 answer
119 views
        I have seen the instruction about Map and know it supports Bing's map.  Now I wanna know if it supports Google's map.  If the answer is YES, how to do it?
Nikolay
Telerik team
 answered on 14 Apr 2010
3 answers
89 views
Hi,

The call to RadWindow.Alert("msg") crashes on Window XP PRO while it's working on Windows Seven boxes

We are using this telerik package RadControls_for_WPF_2010_1_0309_DEV.msi

Please find below the error stack we have during the crash 

{"La valeur '/Telerik.Windows.Controls.Navigation;component/Themes/GenericVista.xaml' ne peut pas être attribuée à la propriété 'Source' de l'objet 'System.Windows.ResourceDictionary'. La valeur '/Telerik.Windows.Controls.Navigation;component/themes/vista/CarouselDataFieldPresenter.xaml' ne peut pas être attribuée à la propriété 'Source' de l'objet 'System.Windows.ResourceDictionary'. La référence d'objet n'est pas définie à une instance d'un objet.  Erreur à l'objet 'System.Windows.ResourceDictionary' dans le fichier de balisage 'Telerik.Windows.Controls.Navigation;component/Themes/GenericVista.xaml'.  Erreur à l'objet 'System.Windows.ResourceDictionary'."} 


Thank you for your support.

Best Regards.

Luciano





Boyan
Telerik team
 answered on 14 Apr 2010
1 answer
104 views
I have a RadToolBar with some buttons.
Some of them are navigationbuttons which I want to Enable/Disable from codebehind:

<Button x:Name="btnFirst" Command="{Binding FirstCommand}" IsEnabled="{Binding IsLeftEnabled}" Width="26">
                <Image Width="16" Height="16" Source="/Star3;component/Images/16/navigate_beginning.png"/>     
</Button>     

It works not 100%: I had expected a gray image when disabled.
But the image just disappeares.
And it won't come back when enabled again...     

Marinus
Vladislav
Telerik team
 answered on 14 Apr 2010
3 answers
156 views
Hi,

Is there a way to export only the specified columns to excel. If not ;
<telerik:GridViewDataColumn IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" Header="Adet" Width="125"
                        <telerik:GridViewDataColumn.CellTemplate> 
                            <DataTemplate> 
                                <StackPanel Orientation="Horizontal"
                                    <TextBlock Text="{Binding ItemAmount}" FontWeight="Bold"/> 
                                    <TextBlock Text=" yerine "/> 
                                    <TextBlock Text="{Binding ArrivedAmount}" FontWeight="Bold"/> 
                                </StackPanel> 
                            </DataTemplate> 
                        </telerik:GridViewDataColumn.CellTemplate> 
                         
                    </telerik:GridViewDataColumn> 

As you see at the code above i am using e cell template at the grid column. While exporting it does not export the data inside the cell template. Is the a way to solve this.

Regards.
Vlad
Telerik team
 answered on 14 Apr 2010
3 answers
177 views
I am a little unclear on the scope of the RadPanelBar. I understand that the RadPanelBar contains a tree-like structure of RadPanelBarItems. Can these items be any content such as Grids, StackPanels of controls, etc.? Or are they just tree-like text as shown in the demo project? The documentation only mentions an Item property that is an 'object'.

Also, the documentation is called RadControls for Silverlight. I assume it also applies to WPF. Is there any functionality that is Silverlight or WPF specific?

Thanks.

Greg
Valentin.Stoychev
Telerik team
 answered on 14 Apr 2010
10 answers
139 views
Hi,

We cutover to the 2010 version (2010.1.309.35).

The combo box columns are not displaying as they were (in non edit mode the values are showing, not the display path value).

We are using collection view sources pointing to datatables as the source.

e.g:
 
...  
    <UserControl.Resources> 
        <CollectionViewSource x:Key="EmployeeSkillSource" Source="{Binding DataSet.Tables[Roster.EmployeeSkill]}"/>  
        <CollectionViewSource x:Key="Roster.Station" Source="{Binding DataSet.Tables[Roster.Station].DefaultView}"/>  
    </UserControl.Resources> 
 
...  
    <telerik:GridViewComboBoxColumn   
        Header="Station" 
        DataMemberBinding="{Binding StationID}" 
        UniqueName="Station" 
        ItemsSource="{Binding Source={StaticResource Roster.Station}}" 
        SelectedValueMemberPath="StationID" 
        DisplayMemberPath="StationName" 
        IsReadOnly="True" 
        /> 
 
 

I noticed the samples that came with the latest version does not have a single instance of GridViewComboBoxColumn in the code so I cannot verify any changes.

Can you please provide a demo project veerifying that this usecase is still supported.

Thanks,
Nic

Frank Bubenik
Top achievements
Rank 1
 answered on 14 Apr 2010
5 answers
276 views

Hi

I am using a PanelBar with HierarcicalDataTemplate, and would like to define different ItemTemplates, and use them based on some data bound to the control.

XAML:

<Border Margin="0">
<Border.Resources>
<DataTemplate x:Key="CheckItem">
<StackPanel Orientation="Horizontal" Margin="10 0 0 0">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" Margin="0 0 5 0" Click="Checkbox_Click" />
<TextBlock Name="txtCriteria" Text="{Binding Description}" HorizontalAlignment="Left" MouseDown="TextBlock_MouseDown" Cursor="{Binding LinkCursor}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="TextItem">
<StackPanel Orientation="Horizontal" Margin="10 0 0 0">
<TextBlock Text="{Binding Description}" HorizontalAlignment="Left" />
<TextBox Width="50" HorizontalAlignment="Right" />
</StackPanel>
</DataTemplate>
<HierarchicalDataTemplate x:Key="Category" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource CheckItem}">
<StackPanel Orientation="Horizontal" Margin="0">
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" IsThreeState="True" Margin="0 4 5 6" Click="CategoryCheckbox_Click" />
<TextBlock Text="{Binding Description}" Height="13" Margin="5 4 5 6" HorizontalAlignment="Left"/>
</StackPanel>
</HierarchicalDataTemplate>
</Border.Resources>
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="10">
<telerik:RadComboBox Name="rcbDefinition" Margin="0,0,0,0" Height="20"
HorizontalAlignment="Stretch" VerticalAlignment="Top"
SelectionChanged="rcbDefinition_SelectionChanged" FontSize="12" />
<telerik:RadPanelBar BorderThickness="1" BorderBrush="#FF6699CC" Name="rpbSearchCategories" Margin="0,80,0,0" Width="250" HorizontalAlignment="Left"
ExpandMode="Single" ItemTemplate="{StaticResource Category}" Expanded="rpbSearchCategories_Expanded" Background="White" />
</Grid>
</Border>

codebehind:
...

rcbDefinition.ItemsSource = SearchConfig.Items;
...

        private void rcbDefinition_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            SearchDefinition srchDef = (SearchDefinition)rcbDefinition.SelectedItem;
            if (srchDef.Items == null)
                srchDef.LoadItems();
            rpbSearchCategories.ItemsSource = srchDef.DisplayItems;
            txtSubHeader.Text = srchDef.Instructions;
            UpdateQuery();
        }

 

I defined two DataTemplates, one called CheckItem and one TextItem.
What I would like to accomplish is to define which one to use, based on a field on the SearchDefinition.DisplayItem class.

Taking a wild shot, I would write something like this:

<HierarchicalDataTemplate x:Key="Category" ItemsSource="{Binding Items}" ItemTemplate="{Binding CategoryType}">

But realizing this was too wild a shot.

The "CategoryType" field on the Categories in the list Items would then return either "CheckItem" or "TextItem", depending on whether the underlying items should have a checkbox or a textbox for input by the user.

I hope my question i clear enough for someone to give me a hint on how to do this!

Regards
Jonas

Rappen
Top achievements
Rank 1
 answered on 13 Apr 2010
1 answer
156 views
Hi.

I have an question about the focus of Cell.
Immediately after adding a new line, It does not work, although he would like to move the focus of Cell to the specified column of added line.
For example, item will be null in The following codes.

(at Button1_Click method)
radGridView.UnselectAll();
radGridView.SelectedItem = radGridView.Items[insertingRowIndex];
radGridView.CurrentItem = radGridView.Items[insertingRowIndex];

var m_ColumnIndex =1;
var item = (GridViewRow)radGridView.ItemContainerGenerator.ContainerFromIndex(insertRowIndex);
// item is null
item.Cells[m_ColumnIndex].Focus();
// NullReferenceException

Version:
Telerik RadControls for WPF 2010 Q1 309 Trial
Visual Studio:2010 RC

Please help me.

Regards,
athasian.
Nedyalko Nikolov
Telerik team
 answered on 13 Apr 2010
1 answer
68 views
Hi,
i want to use the new Q1 2010 RadMap for WPF in a winforms project. Is this possible?
Can you give me a little step-by-step tutorial, because in my project i get no map.

I have use the same code in a wpf project, and there everything is alright.

Regards
Benjamin
Andrey
Telerik team
 answered on 13 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?