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

Hierarchical GridView: FrozenColumnCount

5 Answers 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michael Storchmann
Top achievements
Rank 1
Michael Storchmann asked on 20 Oct 2011, 08:40 AM
Hi,

how can I prevent a childgridview from horizontal scrolling (the first two Columns)? I´d set the FrozenColumnCount-Property to 2 but it don´t worked, the entire childgridview is scrolling.

Bye, Michael

5 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 20 Oct 2011, 11:30 AM
Hi Michael Storchmann,

The frozen columns for the child grid will be "frozen" only when scrolling with its own scroll bars. Scrolling the parent grid will scroll the child one (together with its frozen columns) as well. This behavior is expected and is by design.
What you could try is to synchronize the scrolling of the parent and child grids. So, 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.

Best wishes,
Maya
the Telerik team

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

0
Michael Storchmann
Top achievements
Rank 1
answered on 20 Oct 2011, 01:41 PM
Hi Maya,

the scrollbars of the child grid were not shown. Setting MaxWith solves my problem.Thans for your support!

Michael
0
David
Top achievements
Rank 1
answered on 24 May 2016, 06:11 PM

Hi

I have a hierarchical grid in WPF and would like a WPF sample project that shows frozen columns working for a Hierarchcial Grid (that uses ChildTableDefinition).

 

Can you please post one for me? I don't want a SL one - I need a WPF project - thanks.

0
Martin
Telerik team
answered on 26 May 2016, 12:20 PM
Hi David,

I've already answered in your other thread you opened regarding this topic. As described there, the desired behavior can be easily achieved if instead of using Hierarchical Grid, RowDetails are used.
Attached you can find an example which I prepared to demonstrate what I have in mind.

I hope this helps.

Regards,
Martin Vatev
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
David
Top achievements
Rank 1
answered on 26 May 2016, 06:59 PM

Hi

I appreciate the response but I need the grid to allow me to create RowDetials template for n tiers at run time.

In my case I have n tiers only known at run time - Hierarchical Grid allows me to achieve this but has a floor in that I cant Freeze nested details.   You suggested that I use RowDetaislTemplate as it allows me to FeezeRowDetails - but it has a floor in that you say it does not support n tiers at runtime. I'm sure this can be done but I need a sample project from yourself to demonstrate how to do it.

It's a classic requirement to have a nest grid (n levels deep with the same columns built at run time) and have the far left grouping column freeze property on all grids - IN A GRID not a tree list -  3rd party Vendors were providing this functionality in VB6/Winforms 10- years ago - I find it difficult to see why this functionality has regressed. Whatever the solution - can you please give it your best shot and provide me with a working project that satisfies (to your best ability) my requirement - Many Thanks in advance.

I really do appreciate any proposal  and I will try and work with it..

 

Thanks

David

David

 

 

Tags
GridView
Asked by
Michael Storchmann
Top achievements
Rank 1
Answers by
Maya
Telerik team
Michael Storchmann
Top achievements
Rank 1
David
Top achievements
Rank 1
Martin
Telerik team
Share this question
or