Synchronize 2 radgridviews with content grouped

4 posts, 1 answers
  1. Jan Pfeffer
    Jan Pfeffer avatar
    55 posts
    Member since:
    Aug 2006

    Posted 29 Feb 2012 Link to this post

    Hey at Telerik

    I have 2 radgridviews set up horizontally with the same column configuration and almost the same content.
    (the content of two columns in each radgridview can differ).
    I have grouped the content in both radgridviews and have tried to synchronize the grids when groupitems are selected.
    When i click a Group item in say the left radgridview i would like the corresponding groupitem in the other radgridview to scroll to that exact vertical position.

    Is there any way to achieve this behaviour ?

    Sincerly Jan
  2. Answer
    Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 05 Mar 2012 Link to this post

    Hi Jan,

    Thank you for writing.

    Yes, there is a way to achieve such behavior. I am sending you a small sample project which demonstrates how this could be implemented. The basic idea is to handle clicks on group rows in one of the grids, iterate to the groups of the other grid to check for a group with the same name and if there is such, make it current. Also, a small tweaking of the position of the scrollbar is needed in order to get the items aligned beside each other.

    I hope you find this useful. Do not hesitate to write back in case you have any additional question.

    All the best,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Vishal
    Vishal avatar
    10 posts
    Member since:
    Sep 2012

    Posted 26 Sep 2012 Link to this post

    Hi,

    Can any one guide me on how to scroll syncing of two winform radgridview in a manner, when i scroll one gridview, other gridview scrolls to the same level(row); and same happens when 2nd gridview is scrolled; and 1st gridview is also scrolled in same manner.

    Thanks in advance,
    Vishal Gupta
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 27 Sep 2012 Link to this post

    Hi Vishal,

    Please check my reply in the other forum thread in which you are asking the same question.

    Feel free to ask if you have any additional questions.

    All the best,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top