I have a GridView with several columns. I am using a subset of columns to the right to show bars like a kind of Gantt chart.
I want to style the cells in the rows in such a way that each Cell merge with the cell to its left and the cell to its right (no merge with above or below cells) in order to produce the impression that there is a horizontal bar created by setting the background color.
I set up padding and also margin to (0,10, 0,10) in the Cell Template and hidden the columns vertical lines but I still get a gap between the cells.
I also created a GridViewCellStyle copied from the default as suggested in the documentation, I assigned to the DataColumns tag but make no difference. I can't get rid of the gaps. So I may be doing something wrong.
1. Could you be so kind of tell me how can I get this result.
2. I need to change the name of the columns header dynamically. I can do it from code behind but if I want to do it from XAML how I do that?
Thanks


<
telerik:RadWindow x:Class="MacFellow.WPF.ParentRadWindow"
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:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
d:DesignHeight="300" d:DesignWidth="521">
<Grid>
<telerik:RadWindow Top="10" Left="10" Height="200" Width="300" Visibility="Visible">
<Button x:Name="btnClickMe" Content="Click Me" Width="100"/>
</telerik:RadWindow>
</Grid>
</
telerik:RadWindow>
Hi,
We have a RadTreeView nested in a RadPanelBar which the user can undock and have floating. While docked the binding for the all data works fine including the state of the checkboxes. However, when the undocked and floating the checkboxes no longer reflect the correct state. The names for the hierarchical data items are displaying correctly so some of the binding is still working but not the state of the checkboxes.
The following is the xaml we are using:
<telerikNavigation:RadPanelBarItem Collapsed="RadPanelBarItem_ExpandedCollapsed" Expanded="RadPanelBarItem_ExpandedCollapsed" > <telerikNavigation:RadPanelBarItem.Header> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="18" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <CheckBox Grid.Column="0" IsThreeState="True" IsChecked="{Binding IsDomainsChecked, Mode=TwoWay, NotifyOnTargetUpdated=True}" Click="FilterCheckBox_Click" TargetUpdated="CheckBox_TargetUpdated"/> <TextBlock Grid.Column="1" Text="Domains"/> </Grid> </telerikNavigation:RadPanelBarItem.Header> <telerikNavigation:RadTreeView Name="DomainTreeView" IsOptionElementsEnabled="True" ItemsOptionListType="CheckList" IsTriStateMode="True" Checked="TreeView_CheckedUnchecked" Unchecked="TreeView_CheckedUnchecked" ItemsSource="{Binding Path=DomainEmailTypes}"> <telerikNavigation:RadTreeView.ItemTemplate> <HierarchicalDataTemplate DataType="{x:Type ViewModels:EmailTypeFilterViewModel}" ItemsSource="{Binding Path=EmailTypes}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/> <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" /> </Grid> <HierarchicalDataTemplate.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/> <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" /> </Grid> </DataTemplate> </HierarchicalDataTemplate.ItemTemplate> </HierarchicalDataTemplate> </telerikNavigation:RadTreeView.ItemTemplate> </telerikNavigation:RadTreeView> </telerikNavigation:RadPanelBarItem>