Forcing a CellStyleSelector to refresh

3 posts, 1 answers
  1. Matt Eland
    Matt Eland avatar
    24 posts
    Member since:
    Sep 2009

    Posted 18 Nov 2010 Link to this post

    I've got a scenario where I'm programmatically generating columns for months and setting the CellStyleSelector for that column.

    The columns are all bound to a property called CellData and given a custom converter that takes the column's date in as a ConverterParameter.

    My style selector is very simple and involves changing a cell's font color. Right now I want cells to be gray if a property is zero. This works great initially.

    The problem comes when I perform actions that modify the underlying data. Notifying property changed on CellData causes the column bindings to update and the data to reflect the correct values, but the CellStyleSelector does not re-apply itself. This is a problem since values that are no longer zero are still gray and values that weren't zero before are zero now and are still black.

    What are my options for getting the CellStyleSelector on these columns to refresh? The StyleSelector for each date column currently points to the same object.
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 19 Nov 2010 Link to this post

    Hello,

     Can you post more info about the grid version? We believe that this should work properly with our Q3 2010. 

    Sincerely yours,
    Vlad
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Matt Eland
    Matt Eland avatar
    24 posts
    Member since:
    Sep 2009

    Posted 19 Nov 2010 Link to this post

    I thought I was using Q3 trial, but checking my version number it was still at Q2. Upgrading did the trick.
Back to Top