GridViewSelectColumn gets checked when row is clicked

10 posts, 1 answers
  1. invDev
    invDev avatar
    22 posts
    Member since:
    Dec 2009

    Posted 15 Apr 2011 Link to this post

    Hello,

    I have a Grid with a GridViewSelectColumn at the first position. The Grid is set to SelectionMode.Extended. When I click a row it get's selected and the CheckBox from the SelectedColumn gets checked. Is there any possibility to prevent the CheckBox getting checked, when just the row is clicked and only chechking the Box when it is clicked, itself?

    Thanks for your help!

    Jonas
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 15 Apr 2011 Link to this post

    Hi Jonas,

    Generally, the IsChecked property of the CheckBox-es in the GridViewSelectColumn is bound to the IsSelected property of the corresponding row. Consequently, once the row is clicked upon, i.e. is selected, the CheckBox is checked. If you still want to use the functionality of the select column, you may set the CanUserSelect property of the grid to 'false". 

     

    All the best,
    Maya
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 17 Aug Link to this post

    I have a telerik radgrid with 12 columns including multiselect coumn . Initially grid is having 13 rows and when I Click on multiselect column's header for selecting all the rows ,it's usually taking 2 seconds to select all the records but when I uncheck all click on uncheck , it unchecks all the records at once. I just blink my eyes and all the records are unselected. So there is big time diiference between checking and unchecking all the records. Please suggest me how can I improve performance for selecting all through multi select checkbox.
  5. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 22 Aug Link to this post

    Hi Dishank,

    In general, the performance of the selection should not be affected for such small amount of items.
    Can you please provide more information on your project setup, so I can try finding a possible cause for such behavior?

    Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 22 Aug Link to this post

    If I have small amount of rows in grid like 4 or 5 as well as small amount of columns like 3 or 4 then the selection will be very fast. But if I have huge amount of rows like 40 or 50 and huge amount of columns like 13 or 15 then the selection will be pretty slow. Means if I select on row with multi select checkbox then it will take around .5 sec and if I select all the rows then it will take around 4 seconds.

    So I think the amount of rows and columns could be the issue for this slow performance because wherever I have small amount of columns and rows , it's working fine .

    Please find a solution for that.

  7. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 22 Aug in reply to Stefan X1 Link to this post

    If I have small amount of rows in grid like 4 or 5 as well as small amount of columns like 3 or 4 then the selection will be very fast. But if I have huge amount of rows like 40 or 50 and huge amount of columns like 13 or 15 then the selection will be pretty slow. Means if I select on row with multi select checkbox then it will take around .5 sec and if I select all the rows then it will take around 4 seconds.

    So I think the amount of rows and columns could be the issue for this slow performance because wherever I have small amount of columns and rows , it's working fine .

    Please find a solution for that.

  8. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 22 Aug Link to this post

    I am using WPF with MVVM . For database I am using entity framework.
  9. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 22 Aug in reply to Dishank Link to this post

    I am using WPF with MVVM . For database I am using entity framework.
  10. Dishank
    Dishank avatar
    6 posts
    Member since:
    Apr 2012

    Posted 22 Aug in reply to Dishank Link to this post

    I am using WPF with MVVM . For database I am using entity framework.
  11. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 24 Aug Link to this post

    Hi Dishank,

    Actually, RadGridView is intended to be used without performance degradation with a lot more items than 40 or 50. Based on the provided information, however, I can only guess what the cause of the behavior you are experiencing might be. Would it be possible for you to share how RadGridView is defined and how the selection is implemented, so I can try to replicate the behavior locally?

    Best Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
DevCraft banner