Hi all,
As mentioned in the subject, I am creating an application displaying the data into the user. Beside the original sorting methods, I have to add an extra column under the Header Row as for the user types in with keywords.
The first pic will explain it further.
Hi All,
I'm trying the different ways to Set the SelectedItem to WPF telerik:RadComboBox after load the data and this is still showing the default option empty.
I'm loading the data from my ViewModel (MVVM). Any ideas?
<telerik:RadComboBox x:Name="ActionList" DisplayMemberPath="Name" Grid.Column="1" Grid.Row="0"
ItemsSource="{Binding ActionList, UpdateSourceTrigger=PropertyChanged}"
SelectedItem="{Binding SelectedAction, Mode=TwoWay}"
IsEditable="True" IsReadOnly="True" telerik:TextSearch.TextPath="Name"
MinWidth="120" />
View Model:
private ActionModel _selectedAction;
public AtionModel SelectedAction
{
get { return _selectedAction; }
set { _selectedAction = value; NotifyOfPropertyChange(() => SelectedAction); }
}
Hi!
I have a RadGridView with multiple "templates" that change the order and visibility of columns by Binding. It works fine for the first time but when I change it again this happens:
I use Databinding to change DisplayIndex and IsVisible of every column like this:
DisplayIndex="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.TableConfiguration.ExampleColumnIndex, FallbackValue=6, Mode=TwoWay, NotifyOnSourceUpdated=True}"
Any ideas? Thank you!
Hi,
I use two RadListboxes to allow users to order some things and save the ordered list.
I now want the user to filter the lists and tried the RadDataFilter.
So I bound the Listboxes Itemsource to the RadFIlter.
The problem is, that now the Drag Dop doesnt work anymore.
Is there any way I can do both? Use the filter and the Drag Drop? Or do I have to program my own filter functionality?
Greetings Benedikt
<UserControl
x:Class="DispoTelerik2.ucMappenProduktionslinienPlanung"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DispoTelerik2"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:mat="clr-namespace:Telerik.Windows.Controls.MaterialControls;assembly=Telerik.Windows.Controls"
xmlns:dataFilter="clr-namespace:Telerik.Windows.Controls.Data.DataFilter;assembly=Telerik.Windows.Controls.Data"
>
<Grid
Grid.IsSharedSizeScope="True"
>
<Grid.Resources>
<local:FarbeGutSchlechtConverter x:Key="FarbeGutSchlechtConverter" />
<Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
</Style>
<DataTemplate x:Key="MappenTemplate">
<Border
BorderThickness="1"
BorderBrush="{telerik:MaterialResource ResourceKey=ReadOnlyBorderBrush}"
>
<Grid
Margin="2"
>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="ssgMappeProduktionslinienPlanung1"/>
<ColumnDefinition SharedSizeGroup="ssgMappeProduktionslinienPlanung2"/>
<ColumnDefinition SharedSizeGroup="ssgMappeProduktionslinienPlanung3"/>
</Grid.ColumnDefinitions>
<iconPacks:PackIconMaterial
Grid.Row="0"
Grid.Column="0"
HorizontalAlignment="Center"
Kind="AlphaSCircle"
>
<iconPacks:PackIconMaterial.Foreground>
<SolidColorBrush
Color="{Binding Gesägt, Converter={StaticResource FarbeGutSchlechtConverter}}"
/>
</iconPacks:PackIconMaterial.Foreground>
</iconPacks:PackIconMaterial>
<TextBlock
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
FontWeight="Bold"
FontSize="{DynamicResource FontSizeM}"
Text="{Binding Mappe}"
Margin="5 2 0 2"
/>
<TextBlock
Grid.Row="2"
Grid.Column="0"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="{Binding ProduktTyp}"
Margin="5 2 3 2"
/>
<TextBlock
Grid.Row="2"
Grid.Column="1"
HorizontalAlignment="Center"
Text="{Binding Zellen, StringFormat={}Zellen: {0:n0}}"
Margin="8 2 0 2"
/>
<TextBlock
Grid.Row="3"
Grid.Column="0"
HorizontalAlignment="Center"
Text="{Binding AufwandBAZ, StringFormat={}Aufwand BAZ: {0:n0}}"
Margin="10 2 3 2"
Visibility="{Binding Path=ProduktGruppeMöbel, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="3"
Grid.Column="1"
HorizontalAlignment="Center"
Text="{Binding Einzelteile, StringFormat={}Einzelteile: {0:n0}}"
Margin="8 2 0 2"
Visibility="{Binding Path=ProduktGruppeMöbel, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="3"
Grid.Column="1"
HorizontalAlignment="Center"
Text="{Binding TrennwändeEinzelteile, StringFormat={}Einzelteile: {0:n0}}"
Margin="8 2 0 2"
Visibility="{Binding Path=ProduktGruppeTrennwände, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="4"
Grid.Column="0"
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
FontWeight="Medium"
Text="{Binding Termin, StringFormat={}Plantermin: {0:dd.MM.yy}}"
Margin="5 2 0 2"
/>
<TextBlock
Grid.Row="5"
Grid.Column="0"
Grid.ColumnSpan="2"
HorizontalAlignment="Center"
FontWeight="Medium"
Text="{Binding Endtermin, StringFormat={}Endtermin: {0:dd.MM.yy}}"
Margin="5 2 0 2"
/>
<TextBlock
Grid.Row="6"
Grid.Column="0"
HorizontalAlignment="Center"
Text="{Binding MöbelProduktausprägung}"
Margin="5 2 3 2"
Visibility="{Binding Path=ProduktGruppeMöbel, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="6"
Grid.Column="1"
HorizontalAlignment="Center"
Text="{Binding MöbelSchwierigkeit, StringFormat={}Schwierigkeit: {0}}"
Margin="8 2 0 2"
Visibility="{Binding Path=ProduktGruppeMöbel, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="6"
Grid.Column="0"
HorizontalAlignment="Center"
Text="{Binding TrennwändeAnlagenmerkmal}"
Margin="5 2 3 2"
Visibility="{Binding Path=ProduktGruppeTrennwände, Converter={StaticResource VisibleIfTrueConverter}}"
/>
<TextBlock
Grid.Row="6"
Grid.Column="1"
HorizontalAlignment="Center"
Text="{Binding TrennwändeProfilausbildung}"
Margin="8 2 0 2"
Visibility="{Binding Path=ProduktGruppeTrennwände, Converter={StaticResource VisibleIfTrueConverter}}"
/>
</Grid>
</Border>
</DataTemplate>
<!--<DataTemplate x:Key="ProduktTypFilterEditorTemplate">
<telerik:RadComboBox
SelectedValue="{Binding Value, Mode=TwoWay}"
ScrollViewer.CanContentScroll="False"
MinWidth="100" />
</DataTemplate>-->
<!--<local:clsCustomEditorTemplateSelector x:Key="CustomEditorTemplateSelector">
<local:clsCustomEditorTemplateSelector.EditorTemplateRules>
<local:EditorTemplateRule
PropertyName="ProduktTyp"
DataTemplate="{StaticResource ProduktTypFilterEditorTemplate}"
/>
</local:clsCustomEditorTemplateSelector.EditorTemplateRules>
</local:clsCustomEditorTemplateSelector>-->
<local:RadFilterTypes x:Key="RadFilterTypes" />
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="100*"/>
</Grid.RowDefinitions>
<telerik:RadToolBar
Grid.Row="0"
VerticalAlignment="Top"
>
<telerik:RadComboBox
ToolTip="Anzuzeigende Linie auswählen"
ItemsSource="{Binding ProduktionslinienBereiche}"
SelectedItem="{Binding selProduktionslinienBereich, Mode=TwoWay}"
telerik:TextSearch.TextPath="Bezeichnung"
EmptyText="Linie auswählen"
ScrollViewer.CanContentScroll="False"
DisplayMemberPath="Bezeichnung"
ClearSelectionButtonContent="Auswahl aufheben"
ClearSelectionButtonVisibility="Visible"
/>
<telerik:RadDropDownButton
ToolTip="Anzuzeigenden Zeitraum auswählen"
IsOpen="{Binding ZeitraumOpen, Mode=TwoWay}"
>
<telerik:RadDropDownButton.Content>
<StackPanel
Orientation="Horizontal"
>
<iconPacks:PackIconMaterial
Kind="CalendarMultiple"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="{DynamicResource FontSizeM}"
Height="{DynamicResource FontSizeM}"
Margin="0 0 5 0"
/>
<TextBlock
Text="Zeitraum"
/>
</StackPanel>
</telerik:RadDropDownButton.Content>
<telerik:RadDropDownButton.DropDownContent>
<StackPanel
Margin="8,5"
>
<telerik:RadDateTimePicker
ToolTip="Datum das angezeigt werden soll?"
HorizontalAlignment="Left"
InputMode="DatePicker"
SelectedValue="{Binding Datum, Mode=TwoWay}"
AllowParsingWithoutSeparator="True"
/>
<Button
Name="btZeitraum"
Content="Anzeigen"
Margin="0 10 0 0"
FontWeight="Medium"
Command="{Binding AktualisierenCommand}"
>
</Button>
</StackPanel>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
<Button
Command="{Binding SpeichernCommand}"
ToolTip="Tagesplanung Speichern"
>
<Button.Content>
<StackPanel
Orientation="Horizontal"
>
<iconPacks:PackIconMaterial
Kind="ContentSaveOutline"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="{DynamicResource FontSizeM}"
Height="{DynamicResource FontSizeM}"
Margin="0 0 5 0"
/>
<TextBlock
Text="Speichern"
/>
</StackPanel>
</Button.Content>
</Button>
<Button
Command="{Binding HinzufügenCommand}"
ToolTip="Nicht fällige Mappe in Pool hinzufügen"
>
<Button.Content>
<StackPanel
Orientation="Horizontal"
>
<iconPacks:PackIconMaterial
Kind="FolderDownload"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Width="{DynamicResource FontSizeM}"
Height="{DynamicResource FontSizeM}"
Margin="0 0 5 0"
/>
<TextBlock
Text="Hinzufügen"
/>
</StackPanel>
</Button.Content>
</Button>
</telerik:RadToolBar>
<Grid
Grid.Row="1"
>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="100*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock
Grid.Row="0"
Grid.Column="0"
Text="Pool"
HorizontalAlignment="Center"
FontSize="{telerik:MaterialResource ResourceKey=FontSizeL}"
Margin="5"
/>
<telerik:RadDataFilter
x:Name="rdfMappen"
Grid.Row="1"
Grid.Column="0"
Source="{Binding Mappen}"
AutoGenerateItemPropertyDefinitions="False"
>
<telerik:RadDataFilter.ItemPropertyDefinitions>
<dataFilter:ItemPropertyDefinition
PropertyName="ProduktTyp"
PropertyType="{Binding String, Source={StaticResource RadFilterTypes}}"
DisplayName="Produkt-Typ"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Mappe"
PropertyType="{Binding Int, Source={StaticResource RadFilterTypes}}"
DisplayName="Mappe"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Endtermin"
PropertyType="{Binding DateTime, Source={StaticResource RadFilterTypes}}"
DisplayName="Endtermin"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Termin"
PropertyType="{Binding DateTime, Source={StaticResource RadFilterTypes}}"
DisplayName="Plantermin"
/>
</telerik:RadDataFilter.ItemPropertyDefinitions>
</telerik:RadDataFilter>
<telerik:RadListBox
x:Name="rlbMappen"
Grid.Row="2"
Grid.Column="0"
AllowDrop="True"
ItemsSource="{Binding FilteredSource, ElementName=rdfMappen}"
ItemTemplate="{StaticResource MappenTemplate}"
ItemContainerStyle="{StaticResource DraggableListBoxItem}"
MinWidth="200"
Margin="5 0"
>
<telerik:RadListBox.DragVisualProvider>
<telerik:ScreenshotDragVisualProvider />
</telerik:RadListBox.DragVisualProvider>
<telerik:RadListBox.DragDropBehavior>
<telerik:ListBoxDragDropBehavior
AllowReorder="False"
telerik:TouchManager.DragStartTrigger="TapHoldAndMove"
/>
</telerik:RadListBox.DragDropBehavior>
</telerik:RadListBox>
<TextBlock
Grid.Row="0"
Grid.Column="1"
Text="Planung"
HorizontalAlignment="Center"
FontSize="{telerik:MaterialResource ResourceKey=FontSizeL}"
Margin="5"
/>
<telerik:RadDataFilter
x:Name="rdfMappenGeordnet"
Grid.Row="1"
Grid.Column="1"
Source="{Binding MappenGeordnet}"
AutoGenerateItemPropertyDefinitions="False"
>
<telerik:RadDataFilter.ItemPropertyDefinitions>
<dataFilter:ItemPropertyDefinition
PropertyName="ProduktTyp"
PropertyType="{Binding String, Source={StaticResource RadFilterTypes}}"
DisplayName="Produkt-Typ"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Mappe"
PropertyType="{Binding Int, Source={StaticResource RadFilterTypes}}"
DisplayName="Mappe"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Endtermin"
PropertyType="{Binding DateTime, Source={StaticResource RadFilterTypes}}"
DisplayName="Endtermin"
/>
<dataFilter:ItemPropertyDefinition
PropertyName="Termin"
PropertyType="{Binding DateTime, Source={StaticResource RadFilterTypes}}"
DisplayName="Plantermin"
/>
</telerik:RadDataFilter.ItemPropertyDefinitions>
</telerik:RadDataFilter>
<telerik:RadListBox
x:Name="rlbMappenGeordnet"
Grid.Row="2"
Grid.Column="1"
AllowDrop="True"
ItemsSource="{Binding FilteredSource, ElementName=rdfMappenGeordnet}"
ItemTemplate="{StaticResource MappenTemplate}"
ItemContainerStyle="{StaticResource DraggableListBoxItem}"
MinWidth="200"
Margin="5 0"
>
<telerik:RadListBox.DragVisualProvider>
<telerik:ScreenshotDragVisualProvider />
</telerik:RadListBox.DragVisualProvider>
<telerik:RadListBox.DragDropBehavior>
<telerik:ListBoxDragDropBehavior
AllowReorder="True"
telerik:TouchManager.DragStartTrigger="TapHoldAndMove"
/>
</telerik:RadListBox.DragDropBehavior>
</telerik:RadListBox>
</Grid>
</Grid>
</UserControl>
Hi,
I have a RadGridView that uses DataContext="A" and I want for one of the GridViewDataColumn to use other DataContext="B".
I would be happy if you could explain to me how to do this.
Thanks
Hello,
I'm using a notifyIcon in my application and it doesn't work, but I saw that also the samples included in "Progress Telerik UI for WPF" don't work.
Maybe there is a windows 10 setting? I look in the settings of tray notification area but I didn't see any setting that can disable the working.
Thank you
Luigi
Hello
I did manually converted a .NET Framework 4.7.2 to .NET Core 5.0. I did the conversion by editing the .csproj files using Sdk format.
I have Telerik WPF libraries (2021.3.914) installed locally, and the project refers to the local DLLs.
I don't get any design-time error. I can even see the preview of the page and controls in the designer.
When I run the app I get a runtime error.
System.TypeInitializationException: 'The type initializer for 'Telerik.Windows.Controls.TelerikLicense' threw an exception.'
MissingMethodException: Method not found: 'System.ActivationContext System.AppDomain.get_ActivationContext()'.
I have two projects running side by side: the .NET Framework 4.7.2 runs fine, .NET Core 5.0 fails.
Thanks
Herald
Hello
I am trying to convert a .NET Framework 4.7.2 (Prism) application to .NET Core. I am trying to use the Telerik WPF Project Converter, but I am hitting this error right after I click "Next" on the first screen of the wizard.
(See screenshot)
This is the message:
The wizard encountered an error while trying to handle user event.
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Telerik.Windows.WPF.VSX.ProjectConfigurators.NetCoreCheckableProjectItemsFactory.Create(IList`1 distributionTokens)
at Telerik.VSX.Wizards.ViewModels.UpgradeProjectWizardViewModel`2.get_ProjectItems()
at Telerik.Windows.WPF.VSX.Wizards.UpgradeProjectWizardBase`2.TryGetProjects(Version targetFramework, Boolean useNoXaml)
at Telerik.Windows.WPF.VSX.Wizards.NetCoreConvertWizard.TryGetFrameworkProjects(Boolean useNoXaml)
at Telerik.Windows.WPF.VSX.Wizards.NetCoreConvertWizard.GetPropertyValue(String propertyName)
at Telerik.VSX.WizardEngine.Controls.WizardControlBase.PopulateCollectedValues(IPropertyDataDictionary gatheredData)
at Telerik.VSX.WizardFramework.Pages.DynamicPageController.GetData()
at Telerik.WizardFramework.Wizard.GetCurrentPageData()
at Telerik.WizardFramework.Wizard.UpdateNavigation()
at Telerik.WizardFramework.Wizard.PostMove(Boolean movingNext)
at Telerik.WizardFramework.Wizard.OnMoveNext()
at Telerik.WizardFramework.Wizard.UI_Next(Object sender, EventArgs e)
at Telerik.WizardEngine.Helpers.EventHelper.<>c__DisplayClass0_0.<RaiseEvent>b__0()
at Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)
Thanks
Herald
Hello
I have a Terlik test version and i am trying to implement a RadGridView in a existing project, but the RadGridView doesn't alternate correct.
Thank you for helping me