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

GridViewSelectColumn gets checked when row is clicked

9 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
invDev
Top achievements
Rank 1
invDev asked on 15 Apr 2011, 02:00 PM
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

9 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 15 Apr 2011, 02:04 PM
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
0
Dishank
Top achievements
Rank 1
answered on 17 Aug 2016, 11:15 AM
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.
0
Stefan
Telerik team
answered on 22 Aug 2016, 07:30 AM
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.
0
Dishank
Top achievements
Rank 1
answered on 22 Aug 2016, 10:12 AM

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.

0
Dishank
Top achievements
Rank 1
answered on 22 Aug 2016, 10:12 AM

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.

0
Dishank
Top achievements
Rank 1
answered on 22 Aug 2016, 10:14 AM
I am using WPF with MVVM . For database I am using entity framework.
0
Dishank
Top achievements
Rank 1
answered on 22 Aug 2016, 10:15 AM
I am using WPF with MVVM . For database I am using entity framework.
0
Dishank
Top achievements
Rank 1
answered on 22 Aug 2016, 10:16 AM
I am using WPF with MVVM . For database I am using entity framework.
0
Stefan
Telerik team
answered on 24 Aug 2016, 08:47 AM
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.
Tags
GridView
Asked by
invDev
Top achievements
Rank 1
Answers by
Maya
Telerik team
Dishank
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or