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

On scrolling down in the radgrid top checkbox is unchecking

3 Answers 237 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dilip
Top achievements
Rank 1
Dilip asked on 14 Jun 2013, 07:56 AM
Hi,

I am facing problem in radgrid with checkbox on scrolling horizontal and vertical, thing is if i check the top checkbox if i scroll down another checkbox willbe checked and if i scroll up the checked one will be unchecked can you please some one help me on this, i am struggling any thing like that.

Thanks
Dilip L.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Jun 2013, 02:07 PM
Hello Dilip,

Such a behavior would be observed if you work with the visual elements, i.e. GridViewCells to assign the CheckBox's checked value. Since the virtualization of RadGridView is turned on by default, its elements are created when they should be brought into view and they are also reused on scrolling. You can take a look at this article for a reference on UI Virtualization. 

Would you please set EnableRowVirtualization="False" and "EnableColumnVirtualization="False" for the GridView? Does this resolve the problem?

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dilip
Top achievements
Rank 1
answered on 14 Jun 2013, 02:18 PM
Hello Didie,

Thank you for reply, as u said i have already implemented and checked the problem is resolved, but now i am facing performance issues a lot sometime it will hang and loading to the grid is slow in our application we are going to create around 500 to 1000 rows. can you please tell me what is the alternate for this, i am thinking for pagination but our requirement is like if i select all checkbox(say 100) i need to update to DB in one shot. please replay ASAP. 

For reference please see the screen shot

Thanks
Dilip L

 

0
Dimitrina
Telerik team
answered on 17 Jun 2013, 07:09 AM
Hi Dilip,

Alternatively, you should work with the bound data item's properties instead. So if you have a property bound to the Checked  state of the CheckBox, then change the value of this property, not the state of the visual element (CheckBox).
 

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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