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

Get what Cell is loading

4 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Mar 2015, 12:57 PM
I have a RADGridview and I would like to be able to tell what cell is loading (ex: row 3 cell 2) from the CellLoaded event. I need to change some of the properties of the cell based on what cell it is.   

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 26 Mar 2015, 03:22 PM
Hi John,

Since RadGridView supports UI Virtualization, its rows/cells are reused, which means that on scrolling each row/cell is loaded and unloaded. This affects the row details on each row. You can check our online documentation on UI Virtualization for a further reference. 

That is why I would suggest you to work with the bound data instead. You can try applying a CellStyleSelector as a reliable approach and keep the row virtualization enabled.

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
John
Top achievements
Rank 1
answered on 26 Mar 2015, 05:27 PM
Ok, I need to work with the bound data. How can I tell what the row in the bonded data the cell is bounding to . Just to be clear I am planning on using the CellLoaded event.
Thank you
0
John
Top achievements
Rank 1
answered on 26 Mar 2015, 05:29 PM
How can I see what the bounded data is from the  CellLoaded event?
0
Dimitrina
Telerik team
answered on 27 Mar 2015, 09:45 AM
Hi John,

I am not sure how to understand your approach. Why do you insist on using the CellLoaded event? As I stated in my previous reply, working with the visual elements (GridViewCell) will not behave correctly on scrolling. Would you please share some more information on what the final goal you would like to achieve is? 

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
John
Top achievements
Rank 1
Share this question
or