On scrolling down in the radgrid top checkbox is unchecking

4 posts, 0 answers
  1. Dilip
    Dilip avatar
    23 posts
    Member since:
    Jun 2013

    Posted 14 Jun 2013 Link to this post

    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.

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Jun 2013 Link to this post

    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.

  3. Dilip
    Dilip avatar
    23 posts
    Member since:
    Jun 2013

    Posted 14 Jun 2013 Link to this post

    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

     

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jun 2013 Link to this post

    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.

Back to Top