ScheduleView & GridView row height synchronization

2 posts, 0 answers
  1. Denis
    Denis avatar
    1 posts
    Member since:
    Aug 2015

    Posted 09 Feb Link to this post

    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.

     

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Feb Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top