Get what Cell is loading

5 posts, 0 answers
  1. John
    John avatar
    6 posts
    Member since:
    Feb 2012

    Posted 26 Mar 2015 Link to this post

    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.   
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Mar 2015 Link to this post

    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.

     
  3. John
    John avatar
    6 posts
    Member since:
    Feb 2012

    Posted 26 Mar 2015 in reply to Dimitrina Link to this post

    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
  4. John
    John avatar
    6 posts
    Member since:
    Feb 2012

    Posted 26 Mar 2015 in reply to Dimitrina Link to this post

    How can I see what the bounded data is from the  CellLoaded event?
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 27 Mar 2015 Link to this post

    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.

     
Back to Top