RadGridView: Columns overlap after changing DisplayIndex and IsVisible per Binding

1 Answer 38 Views
GridView
Magdalena
Top achievements
Rank 1
Magdalena asked on 16 Nov 2021, 08:58 AM

Hi!

I have a RadGridView with multiple "templates" that change the order and visibility of columns by Binding. It works fine for the first time but when I change it again this happens:

I use Databinding to change DisplayIndex and IsVisible of every column like this:

DisplayIndex="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.TableConfiguration.ExampleColumnIndex, FallbackValue=6, Mode=TwoWay, NotifyOnSourceUpdated=True}"

 

Any ideas? Thank you!

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 18 Nov 2021, 03:21 PM

Hi Magdalena,

Thank you for the provided image.

I tried to replicate the same result at my end, however, changing the DisplayIndex and IsVisible properties dynamically seems to work as expected.

Can you please have a look at the attached project and let me know if I'm missing something of importance? If possible, please modify the project to demonstrate the issue and send it back to me so that I can further investigate.

Thank you in advance for your cooperation on the matter. I will be awaiting your reply.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
Magdalena
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or