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

Showing FrozenColumnsSplitter when CanUserFreezeColumns="false"

8 Answers 260 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 19 Jun 2012, 08:10 AM
HI there,

I have a little problem. I want to show the FrozenColumnsSplitter but without allowing the user to change the freeze. This means CanUserFreezeColumns="False".
I set the frozen columns throught the code. How can I achieve the described behavoir?

Kind regards
Fx

8 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 19 Jun 2012, 08:13 AM
Hi,

 You could set the CanUserFreezeColumns="False" and FrozenColumnCount="1".  This will allow you to have the first column frozen all the time. The frozen indicator will be visible as well.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Felix
Top achievements
Rank 1
answered on 19 Jun 2012, 08:18 AM
I set in Code Behind:
this.tableReportGridView.FrozenColumnCount = this.ExtractKeyColumnsCount();
And the FrozenColumnSplitter is not showing..

<telerik:RadGridView x:Name="tableReportGridView"
                     AutoGenerateColumns="False"
                     CanUserDeleteRows="False"
                     EditTriggers="None"
                     IsFilteringAllowed="False"
                     ItemsSource="{Binding Data}"
                     RowIndicatorVisibility="Collapsed"
                     SelectionMode="Extended"
                     ShowColumnFooters="False"
                     ShowGroupFooters="True"
                     ShowGroupPanel="False"
                     CanUserReorderColumns="False"
                     CanUserInsertRows="False"
                     CanUserFreezeColumns="False" />
0
Dimitrina
Telerik team
answered on 19 Jun 2012, 08:21 AM
Hi,

 Is by any change the FrozenColumnCount  equal to "0" in that case? The value for the FrozenColumnCount should be greater than "0".

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Felix
Top achievements
Rank 1
answered on 19 Jun 2012, 08:23 AM
It changes dynamically, but it doesn't work in every case. Zero to ten it doesn't work.
0
Dimitrina
Telerik team
answered on 19 Jun 2012, 01:36 PM
Hello,

 Please check our online demo for a reference on how to show FrozenColumnsSplitter when CanUserFreezeColumns="false".

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Felix
Top achievements
Rank 1
answered on 22 Jun 2012, 11:52 AM
I found the problem in Version 2011.4 this didn't work! Version 2012.2 it worked from the beginning.
0
Larry
Top achievements
Rank 1
answered on 13 Feb 2013, 07:10 PM
According to document, this flag controls the visibility of freeze splitter, which seems wrong?

Also we have 2012.3 , and when this is set to false and change FrozenColumnCount, the splitter doesn't always show.
0
Dimitrina
Telerik team
answered on 14 Feb 2013, 11:32 AM
Hello,

The CanUserFreezeColumns property defines whether the User can Freeze/UnFreeze columns at runtime. You say that the splitter does not always show. Would you please clarify when it shows and when it does not?
 

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Felix
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Felix
Top achievements
Rank 1
Larry
Top achievements
Rank 1
Share this question
or