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

Forcing a CellStyleSelector to refresh

2 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 2
Matt asked on 18 Nov 2010, 11:04 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 19 Nov 2010, 08:23 AM
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
0
Matt
Top achievements
Rank 2
answered on 19 Nov 2010, 03:45 PM
I thought I was using Q3 trial, but checking my version number it was still at Q2. Upgrading did the trick.
Tags
GridView
Asked by
Matt
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Matt
Top achievements
Rank 2
Share this question
or