Telerik Forums
UI for WPF Forum
8 answers
200 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
148 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
133 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
279 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
283 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
542 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
123 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
3 answers
191 views
I don't see any insert adorner support in ListBoxDragDropBehavior. (or at least it is not something can be done as simple as  ScreenshotDragVisualProvider). Being able to tell where to drop visually is extremely important to our application. If someone shed some light on this area I will be appreciated.
Georgi
Telerik team
 answered on 23 Oct 2012
14 answers
602 views
Can the RadPane be maximised or shown as full-screen window?
Georgi
Telerik team
 answered on 23 Oct 2012
4 answers
167 views
Is it possible to print the contents of the RadTreeView?
Tina Stancheva
Telerik team
 answered on 22 Oct 2012
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?