When clicking button inside the DataGrid row the command doesn't get executed in the ViewModel.
Both Page and ViewModel are created by the DI container so I need to be able to pass the POCO object of the row where the button is clicked to the ViewModel.
<telerikGrid:RadDataGrid DataContext="{x:Bind ViewModel}" ItemsSource="{x:Bind ViewModel.Source}" AutoGenerateColumns="False">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="UserName" Header="User Name"/>
<telerikGrid:DataGridTextColumn PropertyName="UserEmail" Header="User Email"/>
<telerikGrid:DataGridBooleanColumn PropertyName="UserActiveIndicator" Header="User Status" />
<telerikGrid:DataGridDateColumn PropertyName="RecordCreated" Header="Date Created"/>
<telerikGrid:DataGridDateColumn PropertyName="RecordModified" Header="Date Modified"/>
<telerikGrid:DataGridTemplateColumn Header="Edit" Width="81">
<telerikGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate x:DataType="vm:SearchUserViewModel">
<Button x:Name="editButton" Command="{x:Bind EditUserCommand}" CommandParameter="{Binding }">
<SymbolIcon Symbol="Edit"/>
</Button>
</DataTemplate>
</telerikGrid:DataGridTemplateColumn.CellContentTemplate>
</telerikGrid:DataGridTemplateColumn>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>Hi
I am using the Datagrid with Data Virtualization and I need to implement server side filtering.
So I added the "FilterRequested" command to get the information on how the user wants to filter. I then persist the filters in my viewmodel, clear all data in the datagrids itemsource, send a request to the server and refill the itemsource with the first <batchsize> of the filtered rows. All following requests to the server (e.g.. throug scolling) will use the persisted filter values (and I do the same for sorting). This kind of works so far.
My Problem: I have a column that represents a state in form of an enum. Out of the box I can only filter for distinct states that are in the grid right now, but there are potentially more states in rows that have not been loaded yet. Is there a way to override the distinct filter options with static ones (in my case all enum values)? Even if there is an override, it is probably not possible to figure out which values were selected, because the DistinctValuesFilterDescriptor that is delivered via the FilterRequestContext of the command just gives me all elements that would be left after the filter, not the values selected.
kind regards
Dominik
I was noticing that there is not a VS Extensions for 2022 for the product set WinUI 2.X in my Progress folders. And I'm not sure what this means.
As you can see I have the templates for WinUI. What am I missing?
Sincerely,
Keith Nicholson

This works:
<Window
x:Class="xxxxxx"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="using:Telerik.UI.Xaml.Controls"
mc:Ignorable="d">
<Grid>
<TabView>
<TabView.TabItems>
<TabViewItem Header="CMD Prompt"/>
<TabViewItem Header="PowerShell"/>
<TabViewItem Header="Windows Subsystem for Linux"/>
</TabView.TabItems>
</TabView>
</Grid>
</Window>
This does not due to the following. Using all of the latest nuget packages (2.0). I suspect it is related to being in a Window vs a control:
Microsoft.UI.Xaml.Markup.XamlParseException<Window
x:Class="xxxxxx"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="using:Telerik.UI.Xaml.Controls"
mc:Ignorable="d">
<Grid>
<telerik:RadTabControl>
<telerik:RadTabControl.Items>
<telerik:RadTabItem Header="Tab 1" Content="The content of tab item 1"/>
<telerik:RadTabItem Header="Tab 2" Content="The content of tab item 2"/>
<telerik:RadTabItem Header="Tab 3" Content="The content of tab item 3"/>
<telerik:RadTabItem Header="Tab 4" Content="The content of tab item 4"/>
</telerik:RadTabControl.Items>
</telerik:RadTabControl>
</Grid>
</Window>
Error NU1202 Package Telerik.WinUI.Controls 1.2.0 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Telerik.WinUI.Controls 1.2.0 supports:
- net5.0-windows10.0.19041 (.NETCoreApp,Version=v5.0)
- uap10.0 (UAP,Version=v10.0)
Is the above true? I am using 1.2 via nuget. Is that correct?
So I was looking at the bits and I see three different sets of Binaries for the WinUI set. What is the difference?
Sincerely,
Keith
Ok so I have started a new project from the template and this is my XAML code#
I am getting the following error and cannot work out why ?
WMC0035 Duplication assignment to the 'Content' property of the 'Window'
WMC9997 There are multiple root elements. Line 21, position<Window
x:Class="Megasync_EAB.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ListViewBasicSample">
<Grid>
<ListView
x:Name="BaseExample"
ItemTemplate="{StaticResource ContactListViewTemplate}"
BorderThickness="1"
BorderBrush="{ThemeResource SystemControlForegroundBaseMediumLowBrush}"
Width="350"
Height="400"
HorizontalAlignment="Left"/>
</Grid>
</Window>
<DataTemplate x:Key="ContactListViewTemplate" x:DataType="local:MegaData">
<TextBlock Text="{x:Bind Name}" x:Phase="1" Margin="0,5,0,5"/>
</DataTemplate>
Hi,
Any idea when we can expect the excel export functionality in Telerik WinUI?
Thanks