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

Silverlight5: issue in cell loaded event.

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Atif
Top achievements
Rank 1
Atif asked on 25 Nov 2011, 07:13 AM
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.  

1 Answer, 1 is accepted

Sort by
0
Nina
Top achievements
Rank 1
answered on 07 Feb 2014, 05:31 PM
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)); } }
Tags
GridView
Asked by
Atif
Top achievements
Rank 1
Answers by
Nina
Top achievements
Rank 1
Share this question
or