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

Dynamically change foreground/celltemplate of the cell

4 Answers 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cyls
Top achievements
Rank 1
Cyls asked on 13 Jun 2014, 07:40 AM
Hello!

In my grid i have the cell with price value. At different times price may vary. 
How to change foreground/celltemplate of cell according to change binding value?

4 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 13 Jun 2014, 11:20 AM
Hi,

You can use a Cell Style Selector which will update the cell's style according to the bound property. 

Hope this helps. 

Regards,
Nik
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Cyls
Top achievements
Rank 1
answered on 13 Jun 2014, 12:11 PM
Your example shows a static table. I asked about the dynamically changing values ​​in real time
0
Nick
Telerik team
answered on 13 Jun 2014, 12:40 PM
Hello,

The styleSelector will be triggered with dynamic changing data, as long as there are PropertyChanged notifications fired for the changed properties. 

Nevertheless, here is a real-time update example with StyleSelector.

Hope it helps. 

Regards,
Nik
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Cyls
Top achievements
Rank 1
answered on 13 Jun 2014, 02:05 PM
Thank you!
Tags
GridView
Asked by
Cyls
Top achievements
Rank 1
Answers by
Nick
Telerik team
Cyls
Top achievements
Rank 1
Share this question
or