<Window x:Class="RadComboBoxExample.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Title="MainWindow" Height="350" Width="525"> <Grid x:Name="grid"> <Grid.Resources> <DataTemplate x:Key="comboTemplate"> <TextBlock Text="{Binding Name}" /> </DataTemplate> </Grid.Resources> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0" Orientation="Vertical"> <TextBlock Text="Use ItemTemplate" Margin="10" FontSize="15" HorizontalAlignment="Center" /> <telerik:RadComboBox x:Name="comboBox1" Width="100" Height="30" ItemsSource="{Binding ButtonCollection1}" SelectedItem="{Binding SelectedButton1}" ItemTemplate="{StaticResource comboTemplate}"/> </StackPanel> <StackPanel Grid.Column="1" Orientation="Vertical"> <TextBlock Text="Use DisplayMemberPath" Margin="10" FontSize="15" HorizontalAlignment="Center" /> <telerik:RadComboBox x:Name="comboBox2" Width="100" Height="30" Grid.Column="1" ItemsSource="{Binding ButtonCollection2}" SelectedItem="{Binding SelectedButton2}" DisplayMemberPath="Name"/> </StackPanel> </Grid> </Window>using System.Collections.ObjectModel; using System.Windows; using Telerik.Windows.Controls; namespace RadComboBoxExample { public partial class MainWindow : Window { public ObservableCollection<RadButton> ButtonCollection1 { get; set; } public ObservableCollection<RadButton> ButtonCollection2 { get; set; } public RadButton SelectedButton1 { get; set; } public RadButton SelectedButton2 { get; set; } public MainWindow() { InitializeComponent(); ButtonCollection1 = new ObservableCollection<RadButton>(); ButtonCollection2 = new ObservableCollection<RadButton>(); for (int i = 0; i < 10; i++) { RadButton button1 = new RadButton(); button1.Name = "Button1_Item" + i; ButtonCollection1.Add(button1); RadButton button2 = new RadButton(); button2.Name = "Button2_Item" + i; ButtonCollection2.Add(button2); } grid.DataContext = this; } } }
<telerik:RadGridView Name="EntitlementGrid" AutomationProperties.Name="EntitlementGrid"
IsReadOnly="True" ColumnWidth="*"
telerik:StyleManager.Theme="Windows7"
ItemsSource="{Binding EntitlementsVM.SelectedEntitlements}"
IsFilteringAllowed="{Binding EnableFilters}"
ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionMode="Extended">
<telerik:RadGridView.ChildTableDefinitions>
<telerik:GridViewTableDefinition />
</telerik:RadGridView.ChildTableDefinitions>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn MaxWidth="30" Header="" IsFilterable="False" >
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding IsChecked, Mode=TwoWay}"
ClipToBounds="True" Padding="1"/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn DataType="{x:Null}" Header="Entitlement Id" UniqueName="EntitlementId" />
<telerik:GridViewDataColumn DataType="{x:Null}" Header="PO" UniqueName="PO" />
<telerik:GridViewDataColumn DataType="{x:Null}" Header="SO" UniqueName="SO" />
<telerik:GridViewDataColumn DataType="{x:Null}" Header="Type" UniqueName="Type" />
<telerik:GridViewDataColumn DataType="{x:Null}" Header="Total" UniqueName="TotalCount" ToolTip="Total Count" />
<telerik:GridViewDataColumn DataType="{x:Null}" Header="Available" UniqueName="AvailableCount" ToolTip="Available Count" />
<telerik:GridViewDataColumn IsFilterable="False" DataType="{x:Null}" Header="Requested" UniqueName="RequestedCount" ToolTip="Requested Count" />
<telerik:GridViewDataColumn IsFilterable="False" DataType="{x:Null}" Header="Remaining" UniqueName="RemainingCount" ToolTip="Remaining Count" />
</telerik:RadGridView.Columns>
<telerik:RadGridView.HierarchyChildTemplate>
<DataTemplate>
<telerik:RadGridView Name="EntitlementFeaturesGrid" AutomationProperties.Name="EntitlementFeaturesGrid"
IsReadOnly="True" RowIndicatorVisibility="Collapsed"
IsFilteringAllowed="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}, AncestorLevel=1}, Path=IsFilteringAllowed}"
ItemsSource="{Binding EntitlementItems}"
telerik:StyleManager.Theme="Windows7"
ColumnWidth="Auto">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Feature Name" DataMemberBinding="{Binding ProductName}" />
<telerik:GridViewDataColumn Header="Feature Desc" DataMemberBinding="{Binding ProductDescription}" />
<telerik:GridViewDataColumn Header="Total" DataMemberBinding="{Binding Total}" />
<telerik:GridViewDataColumn Header="Available" DataMemberBinding="{Binding Available}" />
<telerik:GridViewDataColumn Header="Requested" DataMemberBinding="{Binding Requested}" />
<telerik:GridViewDataColumn Header="Remaining" DataMemberBinding="{Binding Remaining}" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>
</telerik:RadGridView>
Hi,
I'm working with RadControls for WPF Q1 2010, released on 22 April 2010.
I have a Spline chart bound to a list of objects with a DateTime and an
Int value. The Values are plotted correctly using LineSeries, however I
ran into a problem using SplineSeries.
If there is no data point for a long time, the chart shows unexpected behavior at the ends of long period as highlighted in the attached illustration. This is unwanted as the X axis represents Time and as it is impossible for time to get back this misrepresents the data. It seems to be a bug from Telerik Chart in such conditions.
I'd like to find out if there is a setting or later release that prevent this behavior. I hope someone can tell me what is wrong!<ComboBox Name="cmbo_NewSME" SelectedValue="You can begin typing the name here..." Height="25" Width="300" Margin="5,6,5,0" Loaded="cmbo_NewSME_Loaded" SelectionChanged="cmbo_NewSME_SelectionChanged"> <ComboBox.ItemContainerStyle> <Style TargetType="{x:Type ComboBoxItem}" BasedOn="{StaticResource {x:Type ComboBoxItem}}"> <EventSetter Event="PreviewMouseLeftButtonDown" Handler="PreviewMouseLeftButtonDown" /> <Style.Triggers> <DataTrigger Binding="{Binding Path=AD_FullName}" Value=""> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ComboBoxItem}"> <StackPanel Name="FullUsrListWrap" Visibility="Visible" Width="300"> <Separator Name="FullList" Margin="0,10,0,5" Height="10" Width="300"/> <telerik:RadButton Name="ShowAllUsrs" Width="220" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,5" Content="Show All Authorize-IT Users..." /> </StackPanel> </ControlTemplate> </Setter.Value> </Setter> </DataTrigger> </Style.Triggers> </Style> </ComboBox.ItemContainerStyle> </ComboBox><ControlTemplate TargetType="{x:Type ComboBoxItem}"> <StackPanel Name="FullUsrListWrap" Visibility="Visible" Width="300"> <Separator Name="FullList" Margin="0,10,0,5" Height="10" Width="300"/> <telerik:RadButton Name="ShowAllUsrs" Width="220" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Center" Margin="0,0,0,5" Content="Show All Authorize-IT Users..."> <Style> <EventSetter Event="Click" Handler="Click" /> </Style> </telerik:RadButton> </StackPanel> </ControlTemplate>Hi,
I'm using ScheduleView to load custom appointments with the Load on demand features. The appointments load fine, but whenever I scroll backward or forward in time (e.g. previous/next week or month) the calendar scrolls back to the top, instead of staying at the time it was scrolled to before navigation.
This also occurs in the RadControls demo; just navigate to Controls -> Data -> Schedule View -> Features -> Load On Demand. Now click Week view. Scroll down to 18:00. Now click the right arrow to navigate to next week. The view scrolls back to the top at 0:00.
Any ideas on how to fix this? I found no method to manually get and set the scrolling position either.
Hello,
I don't speak English very well, but I have a question about the API WPF Telerik.
I would like to know if it's possible to draw on charts?
The user must be able to draw a rectangle on a scatter series using the mouse.
This rectangle will be modified in width. The height will be automatically adjusted based on the average of selected points in the rectangle.
We would like to know if this is feasible or not via the API WPF Telerik and if so using what events?
Best regards,