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

ColumnSyncBehavior

2 Answers 106 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Walter
Top achievements
Rank 1
Iron
Walter asked on 21 Jan 2020, 04:50 PM
Can we get an example of ColumnSyncBehavior?  It would be really great if we could sync columns between gridviews.  I was going to write something like this, but if it's already supported by telerik I'd prefer to use that.

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 24 Jan 2020, 03:26 PM

Hello Walter,

You can use the ColumnSyncBehavior class to do this. The class can be used to data bind to a collection of GridViewColumn objects.

<telerik:RadGridView telerik:ColumnSyncBehavior.Columns="{Binding MyColumnsColleciton}" />

Can you please try this and let me know how it goes?

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Walter
Top achievements
Rank 1
Iron
answered on 07 Feb 2020, 04:48 PM
I needed to sync columns between two different GridViews.  I used the grid shared sized group to accomplish this.  Not sure I can use the column sync behavior to accomplish this.  I may try this in the future if my data set is larger because the shared size group is not efficient for large data sets.  
Tags
GridView
Asked by
Walter
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Walter
Top achievements
Rank 1
Iron
Share this question
or