Converter vs StyleRule

3 posts, 1 answers
  1. Krzysztof
    Krzysztof avatar
    7 posts
    Member since:
    Sep 2011

    Posted 20 Sep 2011 Link to this post

    I have a RadGridView with 30000 items, few columns need conditional formatting. One is simple - all above 10.0 red, other are more complex - based on few properties and ranges. Should i use value converters or StyleRule? Which one is faster? Is it depend based on complexity or amount of conditions?
  2. Answer
    Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 20 Sep 2011 Link to this post

    Hi Krzysztof,

    There should not be percievable difference between both approaches. Yes it would depend on the complexity of the conditions. However it will be the same for both approaches.

    I have made a small test as a proof-of-concept . Please find it attached.  The percieved scrolling performance is pretty mutch the same in both cases.

    Best wishes,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Krzysztof
    Krzysztof avatar
    7 posts
    Member since:
    Sep 2011

    Posted 21 Sep 2011 Link to this post

    Ok, thanks for clarification :) 
Back to Top