<
telerik1:RadCartesianChart.VerticalAxis>
<telerik1:LinearAxis Name="LeftAxis" ElementBrush="DarkGreen"/>
</telerik1:RadCartesianChart.VerticalAxis>
and one additional axis as in sample
<
telerik1:RadCartesianChart.Resources>
<telerik1:LinearAxis HorizontalLocation="Right" Name="RightAxis" x:Key="additionalVerticalAxis" ElementBrush="Blue" FontWeight="Bold" />
</telerik1:RadCartesianChart.Resources>
if(yAxisType == YAxisType.Left){ //User picked left
lineSeries.VerticalAxis.Name =
string.Empty; //To pick the default one?
}
if(yAxisType == YAxisType.Right){//User picked right
lineSeries.VerticalAxis = View.TryFindResource("additionalVerticalAxis");
// _rightLinearAxis;
}

I was Wondering if there was a way to Activate rectangle selection on map without holding Shift key. like by pressing a toggle button and then click-moving the mouse on the map.
the actual scenario is using rectangle selection on a touch screen with no keyboard
How can I make this work with the property grid? I am using a property grid with automatically generated properties and on edit I want SelectedIndex1 and SelectedIndex2 to display a list of my available indexes for the user to choose from.
public class MyIndexSelector{ private readonly List<int> m_someList = new List<int> () {1, 2, 3}; [Browsable (false)] public List<int> AvailableIndexes { get { return m_someList; } } //??[Telerik.Windows.Controls.Data.PropertyGrid.Editor (typeof (IndexEditorControl), Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.DropDown)] public int SelectedIndex1 { get; set; } //??[Telerik.Windows.Controls.Data.PropertyGrid.Editor (typeof (IndexEditorControl), Telerik.Windows.Controls.Data.PropertyGrid.EditorStyle.DropDown)] public int SelectedIndex2 { get; set; }}
first time set the ItemsSource then select one,the selecteditems's count is 1,
when reset the tilelist's ItemsSource,select one, the selecteditems count is 2,
<telerik:RadTileList HorizontalAlignment="Left" ItemsSource="{Binding FpFieldDisplays,Mode=TwoWay}" SelectionMode="Multiple" VerticalAlignment="Top" SelectionChanged="RadTileList_SelectionChanged"/>
<Button x:Name="button" Content="load" HorizontalAlignment="Left" Margin="385,271,0,0" VerticalAlignment="Top" Width="75" Click="button_Click"/>
<Button x:Name="button_Copy" Content="count" HorizontalAlignment="Left" Margin="385,171,0,0" VerticalAlignment="Top" Width="75" Click="button1_Click"/>
backend
/// </summary>
public partial class MainWindow : Window
{
private vm vv = new vm();
public MainWindow()
{
InitializeComponent();
this.DataContext = vv;
}
private int cunt = 0;
private void RadTileList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var tile = sender as Telerik.Windows.Controls.RadTileList;
cunt = tile.SelectedItems.Count;
}
private void button_Click(object sender, RoutedEventArgs e)
{
vv.FpFieldDisplays = new ObservableCollection<itm>()
{
new itm() {Name ="21",value = "1" },
new itm() {Name ="22",value = "2" },
new itm() {Name ="21",value = "1" },
new itm() {Name ="22",value = "2" },
new itm() {Name ="21",value = "1" },
new itm() {Name ="22",value = "2" },
new itm() {Name ="21",value = "1" },
new itm() {Name ="22",value = "2" },
new itm() {Name ="23",value = "3" }
};
}
private void button1_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show(cunt.ToString());
}
}
public class vm : BindableBase
{
public vm()
{
FpFieldDisplays = new ObservableCollection<itm>()
{
new itm() {Name ="1",value = "1" },
new itm() {Name ="2",value = "2" },
new itm() {Name ="3",value = "3" }
};
}
private ObservableCollection<itm> mFpFieldDisplays;
public ObservableCollection<itm> FpFieldDisplays
{
get { return this.mFpFieldDisplays; }
set { this.SetProperty(ref this.mFpFieldDisplays, value); }
}
}
public class itm
{
public string Name { get; set; }
public string value { get; set; }
}
Hello,
I am using RadTreeView and it's bind to an object (basically like in RadTreeView - Binding to object) with IsDragDropEnabled set to True. I use the following piece of code in XAML to define a structure
<Window.Resources> <sampleData:RadTreeViewSampleData x:Key="DataSource"/> <DataTemplate x:Key="Team"> <TextBlock Text="{Binding Name}" /> </DataTemplate> <HierarchicalDataTemplate x:Key="Division" ItemTemplate="{StaticResource Team}" ItemsSource="{Binding Teams}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="League" ItemTemplate="{StaticResource Division}" ItemsSource="{Binding Divisions}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate></Window.Resources>
I need to support
That is built-in and it works. I face other problems:
Hopefully the description is clear enough. Thanks for your time and help.
Regards,
Tomas

Hi,
I'm trying to print a gridview, I'd like to split the grid over multiple pages given the page height from the print dialog box. I'm currently adding the grid to a VisualBrush and to a FixedPage. When I add that to a FixedDocument and print rows are split of multiple pages. I'm sure there is a simple solution I've not found.
Thank you in advance.
Darren
Hi , I use mindmap example code, but why the connector doesn't align with element's bottom edge?
Please see the attachment pictures, thanks!
Hello,
I'm now developing a table to edit a List. I have only one problem, i wan't to cancel edit when user change row without saving with a button on the left of the row.
I use RadGridView and i have try this: ActionOnLostFocus="CancelEdit" but it don't work...
<telerik:RadGridView x:Name="MyGrid" MaxHeight="500" CellEditEnded="GridConfig_OnCellEditEnded" BeginningEdit="EditGrid_BeginningEdit" RowLoaded="EditGrid_RowLoaded" CanUserFreezeColumns="True" EnableColumnVirtualization="False" AutoGenerateColumns="False" RowEditEnded="GridConfig_OnRowEditEnded" ItemsSource= "{Binding ConfigurationList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}">