Hello,
I am using Telerik TabControl and have several tab items under it.
Issue : When I set IsTabEnabled = false in VM, it disables the tabitem but does not apply the below style. The trigger seems to be not getting called when TabItem.IsEnabled Property sets to false. Please suggest.
Thanks,
Abdi
TabItem Style:
<Style x:Key="TabItemStyle" TargetType="{x:Type telerik:RadTabItem}"> <Setter Property="Header" Value="{Binding TabName}" /> <Setter Property="IsEnabled" Value="{Binding IsTabEnabled}" /> <Setter Property="FocusVisualStyle" Value="{x:Null}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik:RadTabItem}"> <Grid x:Name="wrapper"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <Border Name="Border" Grid.Row="0" Margin="0,0,4,0" Background="{StaticResource TabItem_DefaultBackground}" BorderBrush="{StaticResource TabItem_Border}" BorderThickness="1,1,1,1" CornerRadius="2,5,0,0"> <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Center" ContentSource="Header" Margin="16,0,16,0" RecognizesAccessKey="True"/> <i:Interaction.Triggers> <i:EventTrigger EventName="PreviewMouseLeftButtonDown"> <cmd:EventToCommand Command="{Binding DataContext.TabHeaderMouseDownCommand, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadTabControl}}}" PassEventArgsToCommand="True"/> </i:EventTrigger> </i:Interaction.Triggers> </Border> <Rectangle Grid.ZIndex="1" Name="focusVisualStyle" StrokeThickness="1" Stroke="Black" StrokeDashArray="1 2" SnapsToDevicePixels="true" Visibility="Hidden" Margin="0,0,4,0"/> <Border x:Name="OuterBorder" Grid.Row="1" BorderBrush="{StaticResource GenericSelItem_Border_Background}" BorderThickness="0.5,0,0,0.5" /> </Grid> <ControlTemplate.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Panel.ZIndex" Value="100" /> <Setter TargetName="Border" Property="Background" Value="{StaticResource PMDarkGreen}" /> <Setter TargetName="Border" Property="BorderThickness" Value="1" /> <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource PMDarkGreen}" /> <Setter TargetName="Border" Property="Height" Value="24" /> <Setter Property="Foreground" Value="{StaticResource GenericActive_Foreground}" /> <Setter Property="FontFamily" Value="Verdana" /> <Setter Property="FontSize" Value="11" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="Opacity" Value="30" /> </Trigger> <Trigger Property="IsSelected" Value="False"> <Setter Property="Foreground" Value="Black" /> <Setter Property="FontFamily" Value="Verdana" /> <Setter Property="FontSize" Value="11" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="Opacity" Value="30" /> <Setter TargetName="Border" Property="Height" Value="24" /> </Trigger> <Trigger Property="IsEnabled" Value="False"> <Setter TargetName="Border" Property="Background" Value="{StaticResource GenericDisabled_Background}" /> <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource GenericSelItem_Border_Background}" /> <Setter Property="Foreground" Value="{StaticResource GenericDisabled_Foreground}" /> <Setter TargetName="Border" Property="BorderThickness" Value="1" /> <Setter Property="Opacity" Value="20" /> </Trigger> <Trigger SourceName="Border" Property="IsMouseOver" Value="True"> <Setter Property="Foreground" Value="{StaticResource GenericMouseOver_Foreground}" /> <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource GenericMouseOver_BorderBackground}" /> <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource GenericMouseOver_BorderBackground}" /> <Setter TargetName="Border" Property="Background" Value="{StaticResource GenericMouseOver_BorderBackground}" /> </Trigger> <Trigger Property="IsFocused" Value="True"> <Setter TargetName="focusVisualStyle" Property="Visibility" Value="Visible"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>
Hi There, I've a tricky question about connector and connection.
I need to develop a GUI where I can let the user define a connector based upon a polyline (or directly a polyline) by 3 points : A-start, C-end and a third one (B) to adapt the resulting curve to a set of points (to match the more it can the shape see the attached file).
In fact, the main problem is to determine how to retrieve parameters setup by the user when moving the connector.
Once done, how can I access polyline parameters between A and B, B and C. The main goal is to retrieve the equation between the three points. I know it can be done through an equation system solving, but do the TELERIK object is providing any useful attributes or methods?
I mean by example : tension value between points for the spline, factors of the cubic equation, ...
Let me know please

Hello,
Here is My XAML. If I see it in Chart, I appear as attached file. Now, I want to join those scattered points. If we observe those clearly, they appear in "D" shape.
I want to join all the datapoints in Line as D
<telerik:RadCartesianChart x:Name="CartesianChart1" >
<telerik:RadCartesianChart.HorizontalAxis >
<telerik:LinearAxis Maximum="{Binding PMax}" Minimum="0" />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis Maximum="{Binding Max}" Minimum="{Binding Min}" />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Annotations>
<telerik:CartesianGridLineAnnotation Axis="{Binding VerticalAxis, ElementName=CartesianChart1}" Value="0" ></telerik:CartesianGridLineAnnotation>
</telerik:RadCartesianChart.Annotations>
<telerik:RadCartesianChart.Series>
<telerik:ScatterPointSeries>
<telerik:ScatterPointSeries.DataPoints>
<telerik:ScatterDataPoint XValue="250" YValue="-100" />
<telerik:ScatterDataPoint XValue="250" YValue="178" />
<telerik:ScatterDataPoint XValue="496" YValue="-100" />
<telerik:ScatterDataPoint XValue="496" YValue="178" />
<telerik:ScatterDataPoint XValue="520" YValue="-89" />
<telerik:ScatterDataPoint XValue="520" YValue="90" />
<telerik:ScatterDataPoint XValue="528" YValue="0" />
</telerik:ScatterPointSeries.DataPoints>
</telerik:ScatterPointSeries>
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>

Hi,
How we can apply Localized Header for AutoGeneratingColumn ?
For example like
My xaml contains
<telerik:RadGridView x:Name="radGridView" AutoGeneratingColumn="radGridView_AutoGeneratingColumn">
</telerik:RadGridView>
And cs file contains
LocalizationManager.Manager = new LocalizationManager() {
ResourceManager = StringLibrary.ResourceManager,
Culture = new CultureInfo("es")
};
This is in the constructor part for selecting the the Language.
Auto generating event as follows
private void radGridView_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
Telerik.Windows.Controls.GridViewDataColumn col = e.Column as Telerik.Windows.Controls.GridViewDataColumn;
//TODO => if column is some value then i wants to take value from Resourcekey .. This is my requirement.
}
How we can do this ?
We have an existing WPF application that uses a similar UI library to Telerik. We are considering moving to Telerik for many reasons but one is the MVVM support for the RadDocking control. I have been reading and creating some test code and I came across something odd.
I am setting the DataContext of my View/Window using the following XAML.
<Window ...> <Window.Resources> <vm:MainWindowViewModel x:Key="MainWindowViewModel /> </Window.Resources> <Grid DataContext={StaticResource MainWindowViewModel}"> </Grid></Window>Inside the Grid I have a RadDocking that uses the DockingPanesFactory. When I set the DataContext in XMAL (shown above), and I put a break point in the AddPane override for the DockingPanesFactory, the radDocking.SplitItems has zero items the first time.
If I set the DataContext in the code-behind of the View/Window using the following…
public MainWindow(){ InitializeComponent(); this.DataContext = new MainWindowViewModel();}…and now look at the AddPane override for the DockingPanesFactory then the radDociing.SplitItems does NOT contain zero items.
So if I set the DataContext in XAML the Designer in Visual Studio shows the correct layout but at runtime it puts each RadPane in its own container but if I set the DataContext in code behind the Designer does not work at all but it looks as expected at runtime.
Why does the DataContext of my View/Window have to be set in code-behind to get the DockingPanesFactory to work correctly at runtime?
Thanks,
-eric
Hi All,
Is there any way in RadPdfViewer for reducing memory consumption while page navigation?
Thanks,
Divya
Hi,
I noticed that it is impossible to use multibinding on IsReadOnlyBinding of GridViewBoundColumn.
As I have several sources for my binding I really need multibinding. Do you plan to add the functionality in the future?
I have the SelectedItem of my TreeListView bound to a property. However, if conditions aren't met that Property will throw an exception. How do I capture that exception? Is it a Binding error? Is it a Data error? How do I trap and expose it? DataError and GiveFeedback events don't seem to give me anything to trap.
<telerik:RadTreeListView x:Name="treeListView" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" CanUserFreezeColumns="False" CanUserReorderColumns="False" SelectionMode="Single" Grid.Row="1" Margin="5" IsReadOnly="{Binding IsReadOnly}" ItemsSource="{Binding Hierarchy, Mode=TwoWay}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" AutoExpandItems="True" ShowGroupPanel="False" IsFilteringAllowed="False" ShowColumnHeaders="False" IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}" DataError="treeListView_DataError" GiveFeedback="treeListView_GiveFeedback"> <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}"/> </telerik:RadTreeListView.ChildTableDefinitions> <telerik:RadTreeListView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name, Mode=TwoWay}" CellTemplate="{StaticResource TreeNodeTemplate}" IsReadOnly="False" Width="*"/> <telerik:GridViewComboBoxColumn x:Name="itemTypeColumn" Header="Item Type" DataMemberBinding="{Binding ItemTypeID, Mode=TwoWay}" DisplayMemberPath="Name" SelectedValueMemberPath="ID" SortMemberPath="Order" SortingState="Ascending" ItemsSource="{Binding TypeModel.Items, Mode=TwoWay}" IsReadOnly="True" Width="150"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding IsActive, Mode=TwoWay}" Header="Include"/> </telerik:RadTreeListView.Columns></telerik:RadTreeListView>I'm using the VisualizationLayer to display PolylineData items. How can I detect if a PolylineData item has been clicked?
Andrew
