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

Visual Indication of Frozen Columns without allowing the user to change the splitter

2 Answers 205 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 23 Jan 2018, 04:02 PM

Hi,

Firstly, we were extremely glad to see the ability of having frozen columns on both the left and the right added to an already great product so thanks for that.

I have been asked to find out if there is a way we can have a visible distinction akin to the split column but without allowing the user to actually move / set what columns are frozen.

is this something that can be achieved easily with a style or is there already a property I am missing that will show the Left/Right FrozenColumnsSplitter but not allow the splitter to be moved?

 

Many thanks in advance for your help with this

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 26 Jan 2018, 03:53 PM
Hello Lee,

Thank you for the kind words. I believe that the property that you are looking for is CanUserFreezeColumns. You can set the count of frozen columns by using (Right)LeftFrozenColumnCount and show the right frozen indicator by setting RightFrozenColumnsSplitterVisibility to Visible (we made it collapsed by default, in order to prevent the new feature from interfering with existing client layouts). Then set CanUserFreezeColumns to false to disable UI interaction with frozen columns. Here is an example:

<telerik:RadGridView LeftFrozenColumnCount="1"
                             RightFrozenColumnCount="1"
                             RightFrozenColumnsSplitterVisibility="Visible"
                             CanUserFreezeColumns="False"
                             ItemsSource="{Binding Clubs}">


Regards,
Ivan Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Lee
Top achievements
Rank 1
answered on 26 Jan 2018, 06:58 PM

Hi Ivan,

That works perfectly!

Many thanks for your help on this.

Tags
GridView
Asked by
Lee
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Lee
Top achievements
Rank 1
Share this question
or