Telerik Forums
UI for WPF Forum
1 answer
87 views
Hello,

I updated my project to Q3 yesterday. When I published it today (via ClickOnce) I got the following while installing:

Exception occurred loading manifest from file Telerik.Windows.Controls.Input.dll: the manifest may not be valid or the file could not be opened.

Are there any new dependencies in Q3? I just installed it and used update functionality in your VS extension.

Best Regards,
Peter Schmidt
Dimitrina
Telerik team
 answered on 23 Oct 2012
0 answers
133 views
How can we bind EF EntityValidationErrors so the corresponding grid cells shows the errors?

Ex: When DbContext.SaveChanges() throws a DbEntityValidationException with ValidationErrors:
The CustomerId field is required.
The Currency field is required.


Peter
Top achievements
Rank 1
 asked on 23 Oct 2012
2 answers
694 views
Hi!
there are several occasions that the controls do not behave instantly, depending also on the performance capabilities of the current machine and the complexity of the UI.

I see this for instance when expanding/collapsing rows in the RadTreeListView, or expanding/collapsing the RadExpander. Another example is when my user clicks on a grid row and the grid has to switch the display to the editing template of the corresponding column. The same when the user expands a pane in the RadDocking control.

By default these controls do not switch the cursor to the wait cursor, so if these operations take a second to complete, there is no indication that they even have started. So the user tends to click again and again, resulting in strange behavior depending on the occasion.

I'm interesting in just replacing the Arrow cursor with the WaitCursor and not something more complex like using the RadBusyIndicator.

Any solution?
Nick
Telerik team
 answered on 23 Oct 2012
8 answers
158 views
Hi,

It seems that the RadGridViews AlternationCount causes the columns to shrink. This only happens when the RadGridView is nested within a collapsed expander and a scrollviewer.

<ScrollViewer>
   <Expander IsExpanded="False">
      <telerik:RadGridView AutoGenerateColumns="False"
                    ColumnWidth="*"    
                    AlternationCount="2"
                    ItemsSource="{Binding Products}" />
      </telerik:RadGridView>
   </Expander>
</ScrollViewer>

When I remove the AlternationCount property or set IsEpanded property on the expander to true - it seems to solve the issue.

I am using the latest version of WPF assemblies .net 4.0.

Regards
Eugene
Maya
Telerik team
 answered on 23 Oct 2012
0 answers
130 views
Hi
I have successfully displayed a single property using a LookupPropertyDefinition. The drop down is positioned to the value corresponding the the PropertyGrid value as expected and the other available values are visible when the dropdown arrow is pressed. Here's an example of the XAML:

<telerik:LookupPropertyDefinition x:Name="ccLookupDef"
  DisplayName="Lookup Code" Binding="{Binding MyPropCode}"
  SelectedValuePath="Code" ItemsSource="{Binding Data.MyCodes,  Source={StaticResource proxy}}"
  DisplayMemberPath="Description">
</telerik:LookupPropertyDefinition>

 
I'd would like to apply a data template to the content of the dropdown so I can display formatted content from multiple lookup properties.
I've tried using the EditorTemplate but it fixes the lookup data and no dropdown button is displayed.

Here's the code:

<telerik:LookupPropertyDefinition x:Name="ccLookupDef"
  DisplayName="Lookup Code"
  SelectedValuePath="Code" ItemsSource="{Binding Data.ChargeCodes,  Source={StaticResource proxy}}">
  <telerik:LookupPropertyDefinition.EditorTemplate>
    <DataTemplate>
      <Grid Margin="0 3">
        <Grid.ColumnDefinitions>
          <ColumnDefinition />
          <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="{Binding MyPropCode}" />
        <TextBlock Grid.Row="0" Grid.Column="1" Margin="26,0,0,0" Text="{Binding Description}" />
      </Grid>
    </DataTemplate>
  </telerik:LookupPropertyDefinition.EditorTemplate>
</telerik:LookupPropertyDefinition>


Is it possible to use a data template with LookupPropertyDefinition?
What have I done wrong here?

Regards 
Craig
Craig
Top achievements
Rank 1
 asked on 23 Oct 2012
1 answer
117 views
Hi,
I have a project where each change to a property is triggering a complex data calculation to get some metrics in a dashboard. Right now the users like the Numeric up down but times they execute it too fast triggering the calculation a lot of times. I was wondering if there is  a way to apply the value changed after a number of sequential clicks. Before going to custom fixes I was wondering if there is way to delay the update when the button is pressed quickly.
Thanks.
Konstantina
Telerik team
 answered on 23 Oct 2012
5 answers
249 views
Hello everyone,

I'm having some trouble with the WPF Map Control. On my application I'm generating about 2636 polygons (triangles) and attaching them to the Information Layer.

Each MapPolygon is being created like so: 

var polygon=New MapPolygon
                 {
               Fill = currentStyle.FillColor,
               Stroke = currentStyle.Stroke,
               StrokeThickness = currentStyle.Thickness,
               Opacity = currentStyle.Opacity,
               Points = new LocationCollection()
                                         {
                                         new Location(point.Y1, point.X1),
                                         new Location(point.Y2, point.X2),
                                         new Location(point.Y3, point.X3)
                                          }
              };

This operation works fine and my triangles are properly generated on the map. Pan operations are fluid and without trouble, but zooming operations (in and out) raise severe performance issues, from enourmous memory/processor consumption to a sort of "delay" between the time that I issue the zoom order and the time the order gets carried out by the map.

This problem only occurs with >1000 polygons on the map, regardless of type (rectangles, triangles, etc.).

So, I would like your help on this. First I must ask if there is any known performance limitation/cap related with this matter (gernerating polygons on the map)? If not, can you tell me what might be the cause for this trouble?
And secondly, what avaible workarounds are there that won't imply using a dynamic layer over the map to manage the objects?

Thanks in advance for the help and for the time taken with this matter!
Andrey
Telerik team
 answered on 23 Oct 2012
4 answers
259 views

I am trying a simple example of using resource groups as per "Programming Telerik ScheduleVIew for WPF/Silverlight (part 1) with simple mods.
I get the following error on the lines that define the groups as below:

Error 1 Only public or internal classes can be used within markup. 'Resource' type is not public or internal. 

<telerik:RadScheduleView.GroupDescriptionsSource>
      <telerik:GroupDescriptionCollection>
          <telerik:ResourceGroupDescription ResourceType="Activity"/>
      </telerik:GroupDescriptionCollection>
  </telerik:RadScheduleView.GroupDescriptionsSource>
  <telerik:RadScheduleView.ResourceTypesSource>
      <telerik:ResourceTypeCollection>
          <telerik:ResourceType Name="Activity">  (ERROR IS HERE)
              <telerik:Resource ResourceName="Morning Meds" />
              <telerik:Resource ResourceName="Evening Meds" />
          </telerik:ResourceType>
      </telerik:ResourceTypeCollection>
  </telerik:RadScheduleView.ResourceTypesSource>


The control worked until I inserted the group code above.


Here is entire XAML
<iCare:BaseUserControl x:Class="POCAClient.Views.TodaysActivities"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:icc="clr-namespace:POCAClient.UserControls"
                       xmlns:iCare="clr-namespace:POCAClient"
                       xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                       xmlns:local="clr-namespace:POCAClient.Views"
                        xmlns:schedule="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
                       mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"
                       Loaded="BaseUserControl_Loaded" >
    <iCare:BaseUserControl.Resources>
        <Style x:Key="ActivityListContainer" TargetType="{x:Type ListBoxItem}" >
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBoxItem}">
                        <ToggleButton Width="{Binding ActualWidth, ElementName=ItemsList}" x:Name="MainOuterToggleButton" Height="68" IsChecked="{Binding Path=IsSelected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem}}}">
                            <DockPanel DockPanel.Dock="Left" x:Name="PanelListItemBG" HorizontalAlignment="Left" Width="{Binding ActualWidth, ElementName=MainOuterToggleButton}" Height="{Binding ActualHeight,ElementName=MainOuterToggleButton}">
                                <Image x:Name="AppointmentImage" DockPanel.Dock="Left" Margin="4,4,2,3" Style="{StaticResource ListBoxItemPhotoStyle}" Source="{Binding Path=AppointmentImage}"></Image>
                                <TextBlock x:Name="StartTimeTextBlock" DockPanel.Dock="Top" Margin="6,4,2,3" TextTrimming="CharacterEllipsis" Style="{StaticResource ScrollingListItemHeaderStyle }" ToolTip="{Binding Path= Start, StringFormat= hh:mm tt}"  Text="{Binding Path= Start, StringFormat= hh:mm tt}" />
                                <TextBlock x:Name="SubjectTextBlock" DockPanel.Dock="Top" Margin="6,2,2,3" TextTrimming="CharacterEllipsis" Style="{StaticResource ScrollingListItemHeaderStyle}" ToolTip="{Binding Path= Subject}" Text="{Binding Path= Subject}" />
                            </DockPanel>
                        </ToggleButton>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsSelected" Value="true">
                                <Setter TargetName="PanelListItemBG" Property="Style" Value="{StaticResource SelectedListItemDockPanel}"/>
                                <Setter TargetName="StartTimeTextBlock" Property="Style" Value="{StaticResource SelectedListItemHeaderTextBlock}" />
                                <Setter TargetName="SubjectTextBlock" Property="Style" Value="{StaticResource SelectedListItemSubHeaderTextBlock}" />
                            </Trigger>
                            <Trigger Property="IsSelected" Value="false">
                                <Setter TargetName="PanelListItemBG" Property="Style" Value="{StaticResource DeselectedListItemDockPanel}"/>
                                <Setter TargetName="StartTimeTextBlock" Property="Style" Value="{StaticResource DeselectedListItemHeaderTextBlock}" />
                                <Setter TargetName="SubjectTextBlock" Property="Style" Value="{StaticResource DeselectedListItemSubHeaderTextBlock}" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </iCare:BaseUserControl.Resources>
  
    <Border  BorderBrush="{StaticResource BorderBorderBrush}"  BorderThickness="1" 
                    Background="{StaticResource GridBodyBrush}" DockPanel.Dock="Top" Margin="5">
        <DockPanel LastChildFill="True">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="373*" MinWidth="180"  MaxWidth="520" ></ColumnDefinition>
                    <ColumnDefinition Width="415*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <DockPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">
                    <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" DockPanel.Dock="Top" Height="30" Margin="20,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Center">
                        <TextBlock Style="{StaticResource PageHeaderTextBlockStyle}" Grid.ColumnSpan="2" FontSize="24" Foreground="#202C21" Text="Today is: "></TextBlock>
                        <TextBlock  x:Name="txtTodayDate" Style="{StaticResource PageHeaderTextBlockStyle}" Grid.ColumnSpan="2" Text="df sdfns dnfnsdf sdfsdf nsdfdf nsdfnsdf sdf" FontSize="24" Foreground="#202C21" DockPanel.Dock="Top"/>
                    </StackPanel>
                </DockPanel>
                <DockPanel Grid.Row="1" Grid.ColumnSpan="2" Margin="0,0,415,0" HorizontalAlignment="Left" >
                    <telerik:RadScheduleView Name="radScheduleViewToday" Width="630" AppointmentsSource="{Binding Appointments}" >
                       <telerik:RadScheduleView.GroupDescriptionsSource>
                            <telerik:GroupDescriptionCollection>
                                <telerik:ResourceGroupDescription ResourceType="Activity"/>
                            </telerik:GroupDescriptionCollection>
                        </telerik:RadScheduleView.GroupDescriptionsSource>
                        <telerik:RadScheduleView.ResourceTypesSource>
                            <telerik:ResourceTypeCollection>
                                <telerik:ResourceType Name="Activity">
                                    <telerik:Resource ResourceName="Morning Meds" />
                                    <telerik:Resource ResourceName="Evening Meds" />
                                </telerik:ResourceType>
                            </telerik:ResourceTypeCollection>
                        </telerik:RadScheduleView.ResourceTypesSource>
                        <telerik:RadScheduleView.ViewDefinitions>
                            <telerik:TimelineViewDefinition MinorTickLength="1h" MajorTickLength="2h" VisibleDays="1"/>
                        </telerik:RadScheduleView.ViewDefinitions>
                    </telerik:RadScheduleView>
                </DockPanel>
                <DockPanel Grid.Column="1" Grid.Row="1" Margin="42,0,0,0">
                    <Border BorderBrush="{StaticResource GridBorderBrush}" BorderThickness="2" Margin="3"
                Background="{StaticResource GridBodyBrush}" Width="384">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
  
                            <DockPanel LastChildFill="True" Margin="10,15,0,30" DockPanel.Dock="Left" >
                                <TextBlock x:Name="txtNotesHeader"  DockPanel.Dock="Top" Margin="3" Foreground="#0C4F95" FontSize="17" FontWeight="Bold" Text="Notes" TextWrapping="WrapWithOverflow"/>
                                <ScrollViewer DockPanel.Dock="Right" Style="{StaticResource EasyAccessScrollViewer}" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                                    <TextBlock  x:Name="txtNotes" Style="{StaticResource TextBlockStyle}" Margin="3,0,10,0" TextWrapping="WrapWithOverflow"></TextBlock>
                                </ScrollViewer>
                            </DockPanel>
                        </Grid>
                    </Border>
                </DockPanel>
            </Grid>
        </DockPanel>
    </Border>
</iCare:BaseUserControl>
Ioan Crisan
Top achievements
Rank 1
 answered on 23 Oct 2012
4 answers
519 views

Hi!,

I was watching a sample when a radWindow is opened in modal way. My question is, if it's possible to change the darkened color due to our app has a background little darkened (xbap) and summarized with telerik control gets too much darkened

thanks

Boyan
Telerik team
 answered on 23 Oct 2012
1 answer
105 views
Export from RadGridView til Excel is still a bit strange:

I used the Telerik Wpf example "Word, Excel, CSV Export.

1. I choose "Excel" and I save te file as ExcelTest.xls
- I get a warning about the format when opening the file in Excel
- Most of the data is changed to text/string.
2. I choose "Excel" and I save te file as ExcelTest.xml
- I get a warning about the format when opening the file in Excel
- Most of the data is changed to text/string.
3. I choose "ExcelML" and I save te file as ExcelTest.xml
- All the data is changed to text/string.

What I expected is:
- No warning from Excel about the format.
- Numbers stay numbers, dates stay dates, money stays money... and so on.

What am I doing wrong?
Dimitrina
Telerik team
 answered on 23 Oct 2012
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?