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

Child grid FrozenColumnCount not working

18 Answers 171 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 30 Nov 2010, 11:52 PM
I have set the FrozenColumnCount both in the xaml and in code for a child grid and have not been successful in getting a response.  Any suggestions, thx.

<telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView AutoGenerateColumns="False" BeginningEdit="grdPlanningChild_BeginningEdit" CanUserFreezeColumns="False" FrozenColumnCount="5" IsFilteringAllowed="False" ItemsSource="{Binding SCO_HierarchyPlanLineDetail}" Name="grdPlanningChild" ShowColumnHeaders="False" ShowGroupPanel="False">
                        <telerik:RadGridView.Columns>

18 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 01 Dec 2010, 10:43 AM
Hello David,



From the xaml mark-up provided I see that you set the RadGridView's property CanUserFreezeColumns to False and in this way you could not be able to freeze any column in your RadGridView.
Please check the attached project for reference.



If you need any further assistance please let me know.


Greetings,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
David
Top achievements
Rank 1
answered on 01 Dec 2010, 06:37 PM
Vanya, thanks for your reply.  The problem occurs when you go to scroll the grid horizontally.  The parent grid's frozen columns do not scroll (as expected), however the child grid's frozen columns do. (Not desired).  I took a look at the project you referenced, and the same thing occurs.  Is there a way to freeze the columns in a child grid upon scrolling?  thx.
0
Vanya Pavlova
Telerik team
answered on 02 Dec 2010, 04:50 PM
Hi David,


In my previous example I did not specify Width and Height properties for the RadGridView that resides in a HierarchyChildDataTemplate and you will not get scrollbars. I have updated the example and added  a frozen columns to the parent grid and everything works fine on my side.

Please check the attached project and let me know if you need any further assistance.


Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
David
Top achievements
Rank 1
answered on 02 Dec 2010, 06:32 PM
Thanks for the reply.  Unfortunately, this behavior isn't what i am looking for.  I want the child grid 'pegged' to the parent grid (same amount of columns) and only one scrollbar.  I have been successful at programmatically controlling the width of the child grid columns, and resizing them when the parent resizes.  Is there a way to 'lock' a column in the child grid when the parent grid scrolls, or some sort of work around?  thanks for your help.
0
Vanya Pavlova
Telerik team
answered on 06 Dec 2010, 01:46 PM
Hi David,


In this case it is better to use RadTreeListView rather than using RadGridView.


Greetings,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Selvakumar Savarimuthu
Top achievements
Rank 1
answered on 05 Sep 2011, 10:11 AM
Hi Vanya,

Why can't we achieve the same functionality in the grid view. The locking of the child and the parent grid for the frozen column is desired in many functionalities. Using the RadTreeListView does not give the desired UI.

Thanks,
Prasanna R
0
Vanya Pavlova
Telerik team
answered on 05 Sep 2011, 11:50 AM
Hi Selvakumar,

 

With the current version and implementation of RadGridView it is not possible to achieve this result. By that reason I proposed to use the RadTreeListView component instead. Regarding the mentioned inconsistency in RadTreeListView's UI  we are aware of this issue and it has been already logged in our PITS System. You may track its progress under PITS item (ID=5237). I would encourage you to vote for this particular request here so that its rating gets higher so at its priority when we consider our future development plans. 



Please excuse us for any inconvenience caused!



Regards,
Vanya Pavlova
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Selvakumar Savarimuthu
Top achievements
Rank 1
answered on 13 Sep 2011, 07:39 AM
Hi Vanya,

We want to use only the gridview. We do not want a UI to represent the grid data like how the TreeListView control displays.

Can we have the feature/Fix in the GridView control please?

Thanks
0
Maya
Telerik team
answered on 14 Sep 2011, 12:35 PM
Hello Selvakumar,

Generally, the expected behavior is that if you scroll the parent grid, the child grid will also be scrolled and its frozen columns will be scrolled as well. If you want to synchronize the scrolling, you can set a width for the child grid so that it has a scroll viewer and synchronize the two scroll viewers. You may refer to this forum thread for a reference.

 

Kind regards,
Maya
the Telerik team

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

0
Selvakumar Savarimuthu
Top achievements
Rank 1
answered on 14 Sep 2011, 12:41 PM
Hi Maya,

We have already seen this post and done the analysis. If it is between 2 separate grids, it seems to work fine. But not in the case of hierarchical grids.

There are lot of flickering and not to the expectations. It would be better to have this fixed as part of the grid view control.

Thanks,
0
Joshua
Top achievements
Rank 1
answered on 27 May 2014, 05:32 PM
Hi Telerik Team,

Did you guys achieved the above functionality(Child grid FrozenColumnCount not working)? if so can you please let me know. we are in need of this functionality.

Thanks,
Josh
0
Joshua
Top achievements
Rank 1
answered on 27 May 2014, 07:14 PM
Hi Telerik Team,

Did you guys achieved the above functionality(Child grid FrozenColumnCount not working)? if so can you please let me know. we are in need of this functionality.

Thanks,
Josh
0
Yoan
Telerik team
answered on 29 May 2014, 04:00 PM
Hi Josh,

I am sending a sample project which demonstrates the approach that my colleague Maya suggested.

I hope it helps.

Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Joshua
Top achievements
Rank 1
answered on 29 May 2014, 07:38 PM
Hi Yoan,

Thanks for your reply. we are having 104 columns in which we set 12 columns to frozen. Horizontal scrolling is not smooth. I see glitches when i am trying to scroll horizontally. Is there way to get the smooth scrolling?

Thanks,
Josh
0
Yoan
Telerik team
answered on 30 May 2014, 06:44 PM
Hello Josh,

Unfortunately, the approach shown in the example is the closest we can offer.

Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Joshua
Top achievements
Rank 1
answered on 02 Jun 2014, 03:49 PM
Thanks Yoan,

When are guys going to integrate this functionality into GridView?

Thanks,
Rajesh
0
Yoan
Telerik team
answered on 04 Jun 2014, 04:38 PM
Hello Rajesh,

Thank you for the feedback.

We will research the current possibilities for achieving this functionality.

Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
David
Top achievements
Rank 1
answered on 24 May 2016, 06:04 PM

Hi

Has there been any progress on this feature? I too have a hierarchical grid (using  in that I need to have frozen columns.. I'm using wpf and would like the closest sample project / thread for wpf that that you have to assist me. I'm not sure how I should be syncing the scroll offset to get it working - it looks a complete jumble.

Thanks

David

Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
David
Top achievements
Rank 1
Selvakumar Savarimuthu
Top achievements
Rank 1
Maya
Telerik team
Joshua
Top achievements
Rank 1
Yoan
Telerik team
David
Top achievements
Rank 1
Share this question
or