Silverlight5: issue in cell loaded event.

2 posts, 0 answers
  1. Atif
    Atif avatar
    3 posts
    Member since:
    Nov 2011

    Posted 25 Nov 2011 Link to this post

    Hi,
        I am working with a telerik gridview which is a terrific control. But right now i'm facing a problem. I have a code in my Cell loaded event of that grid which is necessary to me. The problem occurs, when I scroll down my grid, each time this event fires. I mean, if the grid has been loaded already and i scroll down, it again executes cell loaded event. Which is a pure headache for me. Because it tends to take time. Is there any way to ignore cell loaded event if we scroll down?

    Would be thankful!

    Atif Mumtaz.  
  2. Nina
    Nina avatar
    5 posts
    Member since:
    Jun 2010

    Posted 07 Feb 2014 Link to this post

    Dear Telerik,
    I have the similar issue.
    I am using cell loaded event to highlight cells by my internal logic. It works perfectly if  a grid has no scrollbars. Any scrolling for grid brings an effect when another cells  highlights.
    Please, help. Thank you.

    void grid_CellLoaded(object sender, Telerik.Windows.Controls.GridView.CellEventArgs e)
     {
     if (searchCriteria != "")
     {
    var cell = e.Cell;
    TextBlock txt = cell.Content as TextBlock;
     if (txt != null)
     if (txt.Text.ToLower().IndexOf(searchCriteria) != -1)
    txt.Foreground = new SolidColorBrush(Color.FromArgb(255, 173, 255, 47)); } }
  3. DevCraft banner
Back to Top