We are trying to add the translation for the QuickAccessToolBar ribbon, but altough I have added the Identifier in our Resources. The entries remains in english.
if I select Show below the Ribbon, then some translation are applied others not:
What are we missing?
We using Telerik Version: 2022.2.815.45
We have added the identifier defined in this link in our resources:
WPF RibbonView - Localization - Telerik UI for WPF
Hello,
we have a RadGridView which we define in a .xaml file. To this grid we add a few dynamic columns via a Behavior. Our Problem now is, that the columns we defined in the .xaml-file can be filtered normaly, but the dynamicaly added columns are missing the filter icon in the column header. We tried adding a new Instance of the FilterControl which shows the filter icon, but the FilterControl does not do anything and is missing the Search Textboxes.
Can you guide us advice on what we need to do to get the filter working for those columns?
Here is the code of the Behavior we use to add the dynamic columns:
public class RadGridViewAddCustomFieldDefinitionColumnsBehavior : RadGridViewAddFieldDefinitionColumnsBehavior<CustomFieldDefinition>
{
protected override void AddFieldsColumns(
IEnumerable<CustomFieldDefinition> fieldDefinitions,
GridViewDataControl radGridView,
RadGridViewAddFieldDefinitionColumnsBehavior<CustomFieldDefinition> radGridViewAddFieldColumnsBehavior)
{
var corporationIDToNameConverter = new CorporationIDToNameConverter();
var contactIDToNameConverter = new ContactIDToNameConverter();
foreach (var customFieldDefinition in fieldDefinitions)
{
var column = new GridViewDataColumn
{
Header = customFieldDefinition.PropertyName,
UniqueName = customFieldDefinition.PropertyName,
DataMemberBinding = new Binding("CustomFields")
{
Converter = new ValueConverterChain
{
optionalDictionaryValueConverter,
},
ConverterParameter = new ValueConverterChainParameters
{
customFieldDefinition.ID,
},
},
};
switch (customFieldDefinition.FieldType)
{
case FieldType.Corporation:
SetColumnValueConverter(column, customFieldDefinition, corporationIDToNameConverter);
break;
case FieldType.Contact:
SetColumnValueConverter(column, customFieldDefinition, contactIDToNameConverter);
break;
}
CurrentFieldDefinitionColumns.Add(column);
radGridView.Columns.Add(column);
}
}
protected override void SetColumnValueConverter(
GridViewDataColumn column,
CustomFieldDefinition fieldDefinition,
IValueConverter valueConverter)
{
var converterChain = (ValueConverterChain)column.DataMemberBinding.Converter;
var valueConverterChainParameters = (ValueConverterChainParameters)column.DataMemberBinding.ConverterParameter;
converterChain.Add(valueConverter);
valueConverterChainParameters.Add(fieldDefinition.Values);
}
}
Kind regards
Benny
Hello,
please I need help to display the data of this type List<List<string>> in the component RadGridView.
Attached is a work in progress that I've started and I'm stuck.
Thanks for your help
I have the following code:
<telerik:GridViewDataColumn DataMemberBinding="{Binding CreatedBy.Name}" Header="Name"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding EventObject.TextData}" Header="User Text"/>
public UserType CreatedBy { get; set; }
public object EventObject { get; set; }
in another class:
public string TextData { get; set; }
In the first column, there is a filter icon, and it filters correctly. However, in the second column, there is no filter icon. Could you explain why this might be and how to resolve the issue?
Hi,
We have an issue with tab control and the drop down menu items. Users can create multiple instances of the same tab, that's being displayed fine but when the drop down menu is shown, I can see the names of the tabs, i.e. multiple instances of say "Customer" tab. Now if I select first repeating tab then click on drop down, I can see multiple tabs being highlighted as selected. My question is how can I make those tab items unique so the tab control recognises them as such.
TIA
P.S. please find attached xaml for styling of drop down items <Style TargetType="Telerik_Windows_Controls_TabControl:DropDownMenu" x:Key="DropDownMenuStyle">
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="{StaticResource MainScreen.DropDownMenu.BorderBrush}"/>
<Setter Property="Background" Value="{StaticResource {x:Static root:TabResources.Tab_Active_Background_Brush}}"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="IconColumnWidth" Value="0"/>
<Setter Property="MaxHeight" Value="500"/>
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<telerik:RadWrapPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Setter Property="ItemContainerStyle">
<Setter.Value>
<Style TargetType="Telerik_Windows_Controls_TabControl:DropDownMenuItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Telerik_Windows_Controls_TabControl:DropDownMenuItem">
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="TextBlock.FontWeight" Value="Bold"/>
<Setter Property="Border.Visibility" Value="Visible"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="TextBlock.FontWeight" Value="SemiBold"/>
</Trigger>
</ControlTemplate.Triggers>
<Grid MaxWidth="250" MaxHeight="100"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
DataContext="{Binding ., Converter={StaticResource String2ComplexObjectConverter}}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2"/><!--padding left-->
<ColumnDefinition Width="3"/><!--selected item border-->
<ColumnDefinition/><!--content-->
<ColumnDefinition Width="5"/><!--padding right-->
</Grid.ColumnDefinitions>
<!--Let's try to put something that can be hit detected when mousing over-->
<TextBlock Text="" Grid.ColumnSpan="4" HorizontalAlignment="Stretch"/>
<Border Background="{StaticResource ResourceKey={x:Static root:TabResources.Tab_Selected_Indicator_Brush}}"
Visibility="{Binding RelativeSource={RelativeSource AncestorType=Telerik_Windows_Controls_TabControl:DropDownMenuItem}, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
Grid.Column="1"/>
<TextBlock Text="{Binding Title}"
Foreground="{StaticResource {x:Static ColourResources.MenubarRibbonText}}"
Margin="3,0"
FontFamily="Segoe UI"
Grid.Column="2"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Telerik_Windows_Controls_TabControl:DropDownMenu">
<Border Background="{TemplateBinding Background}"
Margin="{TemplateBinding Padding}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ItemsPresenter Margin="2,5,3,10" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Hi
I set the PaneStateChange event in RadDocking, but the argument of method is of type RadRoutedEventArgs that is useless because it not contains information about the pane and the state. In https://docs.telerik.com/devtools/wpf/controls/raddocking/events/overview is written that the argument should be ActivePangeChangedEventArgs (that inherits from RadRoutedEventArgs but the cast give me null).
Telerik is 2023.02
Thank you
Luigi
Hi,
I'm trying to add a barcode inside a FlowDocumentEditor.
public static ImageInline InsertQRCode(this RadFlowDocumentEditor editor, string code, double width = 96)
{
// Barcode
const double imgWidth = 1000;
var barcode = new RadBarcode
{
Width = imgWidth,
Height = imgWidth,
Symbology = new QRCode()
{
ErrorCorrectionLevel = ErrorCorrectionLevel.H,
CodeMode = CodeMode.Alphanumeric
},
Value = code
};
barcode.BeginInit();
barcode.Measure(new Size(imgWidth, imgWidth));
barcode.Arrange(new Rect(new Size(imgWidth, imgWidth)));
barcode.UpdateLayout();
barcode.EndInit();
using (var stream = new MemoryStream())
{
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(barcode, stream, new PngBitmapEncoder());
stream.Position = 0;
return editor.InsertImageInline(new Telerik.Windows.Documents.Media.ImageSource(stream, "png"),
new Size(96, 96));
}
At barcode.Measure, I've got an NullException. This didn't happen with old RadBarCodeQR component.
Any ideas?
Hi
I have a RadDocking with tabbed documenthost.
If I have only one tab in DocumentHost and I dragged it, the content of the floating window is empty, when I dock again the tab the content is correctly restored.
If I have many tabs in DocumentHost and I dragged one, the content is correctly displayed.
I attached two images that explain the two cases
With 2 or more tabs (correct):
With only one tab (empty) (the content of the second panel should be the same of first image)
Furthermore, in both cases the header is missing.
Thank you
Luigi