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

ColumnWidthChanged does not fire when ColumnWidth is changed via ViewModel

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 08 Dec 2011, 09:51 AM

Hi,

I have a scenario where I need to update the layout of a RadGridView when I change the width of a column from my ViewModel.
My first approach was to use the ColumnWidthChanged event, but it does not fire.
Is this intended behavior?
I could trigger the UpdateLayout() call from my ViewModel, but it does not belong there because it is entirely UI related stuff...

Any suggestions?

Best Regards,
Christian

 

 

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Dec 2011, 10:16 AM
Hello Christian,

The event will be raised only from the grid UI. Since you change the width from your model you know exactly where this change will happen. 

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Christian
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or