How can I Dispose events handled for each cell created in CreateCellElement method in a custom column ?

2 posts, 0 answers
  1. e
    e avatar
    2 posts
    Member since:
    Dec 2014

    Posted 26 Feb 2015 Link to this post

    Hi there, 
    How can I Dispose events handled for each cell created in CreateCellElement method in a custom column ?
    In my RadGridView I use a CustomChechBoxColumn  in which Cells are created By CreateCellElement. and each cell is subscribed to  checked/Unchecked events. every thing is ok but when RowVirtualization and  ColumnVirtualization are enabled , it dosen't work properly.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1218 posts

    Posted 26 Feb 2015 Link to this post

    Hello,

    You can try unsubscribing from those events on the Unloaded event of the CheckBox (and then unsubscribe from it too) to avoid possible memory leaks.

    Regards,
    Ivan Ivanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top