Manually Applied formating is lost and mess up after scrolling

4 posts, 0 answers
  1. Imran Javed Zia
    Imran Javed  Zia avatar
    55 posts
    Member since:
    Jul 2009

    Posted 01 Aug 2012 Link to this post

    Hi,

    We had a RadGrid on a form and we are changing cell background of cells manually depending on values in the cells. ANd it works fine but when we scroll down and then back to up then applied colors are meshed up and applied incorrectly
    We are using 2011.2.920.40 version of WPF controls.

    Thanks

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Aug 2012 Link to this post

    Hello,

    Generally it is not recommended to work with the visual element of the GridView directly. You can use a CellStyleSelector to apply an appropriate style for the cells. This should fix the problem on scrolling.

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Imran Javed Zia
    Imran Javed  Zia avatar
    55 posts
    Member since:
    Jul 2009

    Posted 06 Aug 2012 Link to this post

    Hi Didie,
    We are already using  CellStyleSelector but were using 2011.2.

    We have tried 2012.2.725.40 but getting same issue, I have uploaded  a sample project WPFTestCellFormating.zip for reference on following url.

    https://skydrive.live.com/redir?resid=722083C5D931ED6A!186&authkey=!AMzvv2wEc_E0_tA

    Thanks and Regards
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Aug 2012 Link to this post

    Hi Imran,

    The behavior you get is a result of the way you define your custom column. Since RadGridView is virtualized control, it is always recommended to work with data items (not visual elements) and count on Bindings instead of setting a particular property.
    I would recommend you to run through this article and this blog post for a reference. 

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top