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

[Solved] Automatic unchecked while scrolling radgrid with the checkbox in grid.

1 Answer 284 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tushar
Top achievements
Rank 1
Tushar asked on 10 Aug 2011, 10:58 AM
Hi,
   I have a grid with one checkbox column. I have lot of records in the grid. If I check 2 or 3 checkboxes inside the grid check box column and do the scroll down, then previous checked cell value is unchecked. How can we remove this problem?  Please suggest it.

Thanks,
Tushar Shah.
Cybage Software

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Aug 2011, 04:12 PM
Hi Tushar,

 When the virtualization is turned on (it is set like this by default), the visual elements will be recycled and then reused again. Consequently, you may get the behavior you experience - that some CheckBox-es are checked/unchecked upon scrolling. However, this will be observed only if no property from your business object is exposed as a data binding.

So, I would suggest you to expose a boolean property and bind it to your GridViewCheckBoxColumn by DataMemberBinding. If you want to enable/disable some of those check boxes, I would recommend you to use the IsReadOnlyBinding as illustrated in this article

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

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