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

CellStyle not applied after edit

1 Answer 62 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 19 Aug 2011, 03:52 PM
Hi,

We have a TreeListView and are applying our custom style to the cells. The style changes the background colour of the cell after the value has been edited by the user.

The problem is simple, after editing the cell the style is not applied immediately.
BUT
If we collapse the hierarchy that contains the cell so that it is hidden, then re-open that hierarchy, the cell style is applied as expected.

It seems we need to take the cell out of the visual tree and back in before the style gets applied.

How can we apply this style without doing this ?

Thanks - Paul.

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 22 Aug 2011, 08:37 AM
Hello Paul,

You may try applying a CellStyleSelector on the respective columns, in order to achieve this. However, you should implement INotifyPropertyChanged on your business object class. I have prepared an example project for you. Please, refer to it.

Best wishes,
Ivan Ivanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
TreeListView
Asked by
Paul
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or