CellStyle not applied after edit

2 posts, 0 answers
  1. Paul
    Paul avatar
    24 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2011 Link to this post


    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.
    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.
  2. Ivan Ivanov
    Ivan Ivanov avatar
    1201 posts

    Posted 22 Aug 2011 Link to this post

    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 >>

Back to Top