This is a migrated thread and some comments may be shown as answers.

Problem With grid splitter

5 Answers 165 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Javor
Top achievements
Rank 1
Javor asked on 04 Feb 2019, 09:05 AM
I have problem with RadGridView and grid splitter. it happens when the columns are more than the visible part of RadGridView and you try to move grid splitter doesn't move here is example code:   StyleManager.ApplicationTheme = new FluentTheme();
<telerik:RadRibbonWindow x:Class="TelerikWpfApp1.MainWindow"
                         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                         xmlns:prism="http://prismlibrary.com/"
                         Title="MainWindow" Height="350" Width="525" WindowState="Maximized"
                         prism:ViewModelLocator.AutoWireViewModel="True">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <telerik:RadGridView ItemsSource="{Binding Models}" AlternationCount="2"
                             AutoGenerateColumns="False"
                             IsReadOnly="True"
                             Grid.Column="0"
                             IsFilteringAllowed="True"
                             FilteringMode="Popup"
                             BorderThickness="1">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test1}" Header="Test 1" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test2}" Header="Test 2" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test2}" Header="Test 3" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test4}" Header="Test 4" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test5}" Header="Test 5" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test6}" Header="Test 6" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test7}" Header="Test 7" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test8}" Header="Test 8" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test9}" Header="Test 9" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test10}" Header="Test 10" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test11}" Header="Test 11" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test12}" Header="Test 12" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test13}" Header="Test 13" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test14}" Header="Test 14" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test15}" Header="Test 15" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test16}" Header="Test 16" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test17}" Header="Test 17" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test18}" Header="Test 18" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test19}" Header="Test 19" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test20}" Header="Test 20" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test21}" Header="Test 21" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test22}" Header="Test 22" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test23}" Header="Test 23" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test24}" Header="Test 24" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test25}" Header="Test 25" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Test26}" Header="Test 26" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <GridSplitter Grid.Column="1" Width="10" ResizeBehavior="PreviousAndNext" ResizeDirection="Columns"/>
        <WebBrowser Grid.Column="2"/>
    </Grid>
</telerik:RadRibbonWindow>

5 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 07 Feb 2019, 08:11 AM
Hello Javor,

Thank you for the provided code snippet.

I have tested this scenario on my side but I wasn't able to reproduce it. I am attaching the sample project which I used to test your scenario. When you run the application try to move the grid splitter and let me know if it works on your side. Can you share if I am missing additional code in order to reproduce this behavior in the attached project?

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Javor
Top achievements
Rank 1
answered on 07 Feb 2019, 08:28 PM
In your code you use Windows form you need to use telerik:RadRibbonWindow and  WindowState="Maximized" and when you start the application just try to move grid Splitter i changed in your project and reproduce the bug with MS Window it's working correct.
0
Javor
Top achievements
Rank 1
answered on 07 Feb 2019, 08:32 PM
Please use exact the same XAML.
0
Javor
Top achievements
Rank 1
answered on 07 Feb 2019, 08:34 PM

When you move or change the state of the window some times the problem disappear

0
Dinko
Telerik team
answered on 11 Feb 2019, 03:22 PM
Hello Javor,

Thank you for the provided details. By default, the RadRibbonWindow uses a Windows OS theme. When you the theme is changed you need to set the IsWindowsThemeEnabled property of the RadRibbonWindow to false. Setting this property to false fix this behavior. 
public partial class MainWindow : RadRibbonWindow
{
    static MainWindow()
    {
        RadRibbonWindow.IsWindowsThemeEnabled = false;
    }
    public MainWindow()
    {
        InitializeComponent();
    }
}

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Javor
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Javor
Top achievements
Rank 1
Share this question
or