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

ScheduleView & GridView row height synchronization

1 Answer 142 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 09 Feb 2016, 10:58 AM

Hi, 

I'm making an application which represents data in a GridView and ScheduleView at the same time.

Now I'm looking for a way to bind GridView's rows heights to a ScheduleView row heights to synchronize both components grid lines while scrolling (I have implemented gridview scrolling with scheduleview scrollbar and that was pretty easy).

Sure, I can hardcode GroupHeader height with group header content template selector, but it won't work for a case when few appointments stretches a group.

So, basically I have to get current row heights from ScheduleView, how can I get them even from code-behind?

Twi pics in the attachment.

 

Many thanks,

Denis.

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Feb 2016, 03:04 PM
Hello Dennis,

RadScheduleView does not provide a way to get the height of the GroupHeaders as it's calculated in the internal code of the control.

The only way that comes to my mind is to navigate the visual tree and search for elements of type GroupHeader, then you can check their ActualHeight property.

Regards,
Yana
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScheduleView
Asked by
Denis
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or