Dynamically change foreground/celltemplate of the cell

5 posts, 0 answers
  1. Cyls
    Cyls avatar
    3 posts
    Member since:
    Dec 2013

    Posted 13 Jun 2014 Link to this post

    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?
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 13 Jun 2014 Link to this post

    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.
     
  3. Cyls
    Cyls avatar
    3 posts
    Member since:
    Dec 2013

    Posted 13 Jun 2014 in reply to Nick Link to this post

    Your example shows a static table. I asked about the dynamically changing values ​​in real time
  4. Nick
    Admin
    Nick avatar
    593 posts

    Posted 13 Jun 2014 Link to this post

    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.
     
  5. Cyls
    Cyls avatar
    3 posts
    Member since:
    Dec 2013

    Posted 13 Jun 2014 in reply to Nick Link to this post

    Thank you!
Back to Top