Telerik Forums
UI for WPF Forum
1 answer
163 views

Hi guys,

is it possible to change the scheduleview in a way, that the rows only take the space the single row needs?
Currently if one row is bigger cause the groupheader is bigger all other rows are synced in height. This way it takes much more space then needed.

I searched for a property but not found one.

 

 

Greeting

Martin Ivanov
Telerik team
 answered on 29 Nov 2021
4 answers
214 views

Hello,

I recently updated to the new UI for WPF R3 2021 SP (v2021.3.1109).

I noticed that the appearance of my docking window has changed. It seems that the background color of the main window is inherited now. I attached two screenshots of my application, one before the change, one after.

Is this by accident or will it be a permant change?

regards,

Tobias

 

Stenly
Telerik team
 answered on 26 Nov 2021
1 answer
279 views

Hi guys,

I tried to use a RadCardView wich I wanted to replace a RadListBox, so I bound it to the same Collection in my ViewModel.

This collection is a ObservableCollection. To this collection are items added and removed from code behind from time to time. 
But when this happens I get a nullreference exception.
In the Listbox everything is fine...

And the exception of the CardView is the same with or without a Dispatcher.

 

Does anyone have an idea what could solve this?

Ivan Petrov
Telerik team
 answered on 26 Nov 2021
1 answer
1.1K+ views

When I bring up the Control Panel there is no "TURN FEATURES On/Off" check box for UI for WPF?  There is no Telerik for WPF New Project template either?  I see the standard MS WPF templates, but not Telerik?

In addition there is no option to add UI for UWP for VS 2022?

There IS an option to add WinForms for VS 2022 and I see those new project templates once added.

Am I missing something?

Cheers, Rob.

Nikolay Mishev
Telerik team
 answered on 25 Nov 2021
1 answer
194 views

Hello

I am trying to migrate a WPF (Prism) project from .NET Framework to .NET Core.

I am having issues with some of the controls. To start with the RadRibbonView / Tab simply is not visible in both design and run time (see screenshots). I tried to replace it by dragging the controls from the Toolbox and I get the same result. 

The xaml code I am copying and pasting from an older project so maybe some property has changed, but I was expecting to see something at least in design time.

I am just hoping it is something rather simple.

To replicate, just create a new project: Prism Full App (.NET Core). pull (nuget) the telerik libraries (I did it from local nuget source), and replace MainWindow.xaml with attached.

I use Telerik.UI.for.Wpf.NetCore 2021.3.914

 

Thanks

Herald

 

Martin Ivanov
Telerik team
 answered on 23 Nov 2021
1 answer
524 views
I use RadRichTextBox to preview word files. Those with the suffix .docx can run normally, but some .doc files cannot be previewed normally.Is there a solution?
Tanya
Telerik team
 answered on 23 Nov 2021
1 answer
175 views

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.

Stenly
Telerik team
 answered on 19 Nov 2021
1 answer
1.1K+ views

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); }

}

 


Stenly
Telerik team
 answered on 18 Nov 2021
1 answer
335 views

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!

 

Dilyan Traykov
Telerik team
 answered on 18 Nov 2021
1 answer
184 views

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>


Martin Ivanov
Telerik team
 answered on 18 Nov 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?