Hi,
I want radgridview to scroll like Datagid (ScrollViewer.CanContentScroll="True")
<Window x:Class="WpfApp1.MainWindow"
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:local="clr-namespace:WpfApp1"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<DataGrid ItemsSource="{Binding SampleDataList}" ScrollViewer.CanContentScroll="True" Grid.Row="0" RowHeight="40" />
<telerik:RadGridView ItemsSource="{Binding SampleDataList}" Grid.Row="1" ScrollViewer.CanContentScroll="True" RowHeight="40" />
</Grid>
</Window>
Hello,
I work with version 2016 R3.
I have a series of Data like this
DataType | DataPoint | Value
I displayed correctly all values with either DataType and DataPoint in column or row
Now I want to use different string format according to which DataType it corresponds.
I found the StringFormatSelector on the PropertyAggregateDescription and I thought I could use it like any [...]Selector but I don't have in input of the SelectStringFormat method the CellAggregateValue associated.
For now the only way to do that is by using a converter on the CellTemplateSelector of the PivotGrid
(I'm currently implementing it, it's not working as expected yet)
Is there a best way to achieve different string format according to a celldata ?
Regards
Thomas
Hi,
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" >
<telerik:GridViewColumn.CellStyle>
<Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="checkBox"/>
<TextBlock x:Name="textBlockA" Text="AAAAAAA"/>
<TextBlock x:Name="textBlockB" Text="BBBBBBB"/>
</StackPanel>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding ElementName=checkBox,Path=IsChecked}" Value="false">
<Setter TargetName="textBlockB" Property="Visibility" Value="Collapsed"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:GridViewColumn.CellStyle>
</telerik:GridViewDataColumn>
I use your demo do a test about gridviewcolumn width, As the attach video show.
When I check the checkBox in column style,the column with stretch automatically,
when I unchecked, the column width do not get shorter. Is there any method make the column get shorter When I unchecked in the NameColumn
Hi,
I'm using the Outlook Template from Telerik.
What I've done is that I've swapped the current grid with my own item source which list the categories the 1. grid.
What I want to do is upon selecting a row, I want upon choosing a row from the 1.grid to send categoryID parameter to viewmodel, and viewmodel is going to run the sample function which retrieves the data from the database.
My function is retrieving the data just fine. I just need to find out how to make selected row in grid 1, call on this retrieve data function and update the gridview 2 with new items. If I decide to choose another row in grid 1, it would call on the retrieve data function again with new categoryID as parameter
How can I achieve this?
Hello
I am in vb.net with wpf, I have an existing radgridview with custom validationDiffProperty. I am using telerik v 2017.3.1018.45
My goal is to add a radgriview row with radcombox (see attach image). I know how to add a radcombobox column in a radgridview, but I don't know how to add a "radcombobox row" in a radgriview.
Could you please help me ?
Regards
Jean-Christophe
I have a timebar used to selecting time range. However sometimes when the interval is short and located far to the right, the text showing the selected time is cut off, like this: https://i.gyazo.com/179cc9d932da3bcfa08fe38558cbb0ca.png
How can I prevent this? For example make the label right aligned instead of left aligned if it's too far to the right.
I'm needing the datetimepicker to allow the user to select an option for each second over the day, but when i'm down to just 15 minutes the boxes get too small for being able to see the text.
I've scrolled view documentation and the forum and can't find any solution.